Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

With trailingSlash set to 'never', root path still gets trailing slash #101

Open
paulrudy opened this issue Dec 18, 2024 · 0 comments
Open

Comments

@paulrudy
Copy link

This issue is similar to #76, but only happens with the root path.

In Astro.config, with

export default defineConfig({
  site: 'https://example.com',
  trailingSlash: 'never',
})

astro-seo produces <link rel="canonical" href="http://example.com/"> with a trailing slash.

For pages, the trailing slash is removed as expected (<link rel="canonical" href="http://example.com/page">)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant