Skip to content

canonical urls are wrong if lazy loading is used #189

@martinloretzzz

Description

@martinloretzzz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions