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

canonical urls are wrong if lazy loading is used #189

Open
martinloretzzz opened this issue Jul 18, 2020 · 0 comments
Open

canonical urls are wrong if lazy loading is used #189

martinloretzzz opened this issue Jul 18, 2020 · 0 comments

Comments

@martinloretzzz
Copy link

I use static rendering with lazy loading, it looks like, that the canonical links in the header are wrong, if the link ends with a "/" (like "/foo/") in the build it will look something like <link rel="canonical" href="https://example.com/foo" />, where the trailing slash is missing. (Results in some seo problems.)

My workaround for now is to remove

`<link rel="canonical" href="${canonicalURLBase + url.href}" />\n` +

and then set the canonical with react helmet.

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