Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Non-default locale canonical is wrong for dynamic pages due to different paths #1689

Open
katerlouis opened this issue Nov 30, 2022 · 1 comment

Comments

@katerlouis
Copy link

katerlouis commented Nov 30, 2022

We use storyblok as our cms and our pages use different paths per locale. Example:

/datenschutz/ becomes /en/privacy/

But the resulting canonicals say /datenschutz/ and /en/datenschutz/, which is a problem.

The pages coming from storyblok are not extended to the router for a very similar reason; extendRoutes() in nuxt.config cannot be told to have different paths per route (or can it?)

What do you guys suggest we should do?

Thanks!

@katerlouis katerlouis changed the title Canonical is wrong for dynamic pages due to different paths Non-default locale canonical is wrong for dynamic pages due to different paths Nov 30, 2022
@katerlouis
Copy link
Author

Maybe for the time being you guys can suggest a workaround to at least prevent the alternate canonicals to be generated?

@nuxt-modules nuxt-modules locked and limited conversation to collaborators Dec 11, 2022
@kazupon kazupon converted this issue into discussion #1722 Dec 11, 2022
@kazupon kazupon reopened this Jan 10, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

2 participants