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

Wrong locale assignment to Translated page #198

Open
irugoy opened this issue Oct 7, 2020 · 0 comments
Open

Wrong locale assignment to Translated page #198

irugoy opened this issue Oct 7, 2020 · 0 comments

Comments

@irugoy
Copy link

irugoy commented Oct 7, 2020

Hi there, I've two separates page trees, EN and DE like this

  • site_root
    • home-en
      • agenda-en
    • home-de
      • agenda-de

if I browse to /en/home-en/agenda-en/ and prints out the {{ LANGUAGE_CODE }} in template it says 'en' which is correct, but if I try to access /en/home-de/agenda-de/ I actually get to see the DE content but the {{ LANGUAGE_CODE }} still being 'en' which it should not be possible, I should see 'de' instead.

I would expect that if the translation language of the page that is being accessed is 'de' but the locale prefix in URL is not the same then the user should get redirected with the proper locale prefix

So this /en/home-de/agenda-de/ should redirect the user to /de/home-de/agenda-de/

Thanks

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