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 links removing explicit trailing slash #1461

Open
guilherssousa opened this issue Apr 30, 2024 · 0 comments
Open

Canonical links removing explicit trailing slash #1461

guilherssousa opened this issue Apr 30, 2024 · 0 comments

Comments

@guilherssousa
Copy link

Describe the bug
A clear and concise description of what the bug is.

I'm expecting my code to generate the rel=canonical tag with the link ending with a trailing slash, and, although it has been added explicitly on the canonical prop string, it still gets removed.

Reproduction
For issues to be triaged in a timely manner please provide a Codesandbox/Github of the issue in it's simplest reproduction.

      <NextSEO
        title={/* redacted */}
        description={/* redacted */}
        canonical={`https://redacted.com/${slug}/`}
        />

returns <link rel="canonical" href="https://redacted.com/slug">

Expected behavior
A clear and concise description of what you expected to happen.

I expect it to return the canonical href as https://redacted.com/slug/

Additional context
Add any other context about the problem here.

Running on Next SEO 6.5.0 and Next 14.1.4

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