Open goela268 opened 3 months ago
However, if you are currently on example.com/nl, and navigate to example.com by adjusting the url (so essentially removing the prefix), the selected language is kept, as I would expect.
I don't understand, are you saying you expect example.com
to show nl
translations when navigating to it from example.com/nl
?
Environment
Build Modules: -
Reproduction
https://stackblitz.com/edit/bobbiegoede-nuxt-i18n-starter-v5tzb6?file=app.vue
Describe the bug
If you navigate to a different page using
navigateTo
the selected locale is ALWAYS reset todefaultLocale
. Example: You get redirected `example.com/' (no prefix). Language is reset to the default one.However, if you are currently on example.com/nl, and navigate to example.com by adjusting the url (so essentially removing the prefix), the selected language is kept, as I would expect.
Additional context
No response
Logs
No response