Remember locale - adjust all links to append the current locale to url #4404
Unanswered
kombuchapunk
asked this question in
Troubleshooting
Replies: 1 comment
-
I've the same problem. Have you found a solution? @MishaPetrov |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I'm building a multisite with a language dropdown done this way:
where everything seems to work fine but every time I change the locale and then click on any menu item, I automatically get to the default english version. I don't want to rebuild all links for all 100 pages for each language and want the links in pages and in top navbar to adjust based on the currently chosen locale/language since the slug structure won't change in the site.
It looks like all of the pages and stuff are linked using ids and each localized page version has its own id so this is a bit confusing.
I can provide any additional information if needed.
Also, what's a good way to check the user's default browser locale and initially set it as a main one on first site's launch?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions