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

i18n URLs do not redirect on wrong language slug #4133

Closed
stefanw opened this issue May 29, 2015 · 2 comments
Closed

i18n URLs do not redirect on wrong language slug #4133

stefanw opened this issue May 29, 2015 · 2 comments

Comments

@stefanw
Copy link
Contributor

stefanw commented May 29, 2015

Consider the following URLs:

  • /de/kontakt/ main language contact page
  • /en/contact/ English language contact page

However, if somehow the prefix gets changed, the following happens:

  • /en/kontakt/ serves the English contact page, but with a German URL
  • /de/contact/ serves the German contact page, but with an English URL

I believe this to be a bug. I think there should be a check if the current path (after the language prefix) matches the resolved page and if not, redirect to the page using the correct language path/slug. This should happen in order to have canonical URLs for content.

I will try to provide a PR with a test, if you consider a redirect in this case to be a solution.

@yakky
Copy link
Member

yakky commented May 30, 2015

Duplicate of #3548

@yakky yakky added this to the 3.X milestone May 30, 2015
@FinalAngel
Copy link
Member

Closed as duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants