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

Homepage URL's (and hreflangs) get unintentional trailing slash #261

Open
hesselmid opened this issue Nov 25, 2024 · 0 comments
Open

Homepage URL's (and hreflangs) get unintentional trailing slash #261

hesselmid opened this issue Nov 25, 2024 · 0 comments

Comments

@hesselmid
Copy link

I use prefixDefaultLanguage: 'always' in my project and I noticed all my homepage links and the hreflang tags have a trailing slash. Every pathname basically get's /en or /nl prepended to the href attribute. For the homepage this turns <a href="/">Home</a> into <a href="/en/">Home</a>. This causes an SEO issue as every link to the homepages redirects to the correct version without a trailing slash.

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