Open adesombergh opened 6 months ago
I have the same problem
I believe there is a bug in https://github.com/nuxt-modules/i18n/blob/b3114556a92f5f7622b37d7b57e681e1f7e3660d/src/runtime/utils.ts#L383
It needs to also check if the next route has i18n enabled or not. Currently, it seem to always set the locale based on the next route regardless if the next route has i18n or not
Environment
Reproduction
Stackblitz reproduction
To reproduce visit homepage without any prefix. You should get a 404 Page not found: /.
Project configuration:
Describe the bug
When implementing the "Wait for page transition" (so that messages are updated after page transition and not before), in a project with ssr: false and strategy: "prefix", the un-prefixed homepage isn't redirecting to the prefixed route (/en, etc..), leading to a 404 Page not found: / error.
Additional context
No response
Logs
No response