-
-
Notifications
You must be signed in to change notification settings - Fork 483
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
URL encoded characters when use 'prefix_and_default' #1792
Comments
Hi, thanks for opening an issue and providing the steps for reproduction. It would be a great help if you could provide a StackBlitz link (using https://stackblitz.com/github/nuxt/starter/tree/v3-stackblitz) with the same steps if possible to immediately get on debugging please! |
Hi, I triggered the same error in stackblitz here. https://stackblitz.com/edit/github-kvhg77?file=pages/[name].vue The links on home are on purpose a BR, |
Any updates here ? If it is easier I can try to create a pull rewuest with how I would imagine it to work. |
@szwenni Of course we welcome any PR from community! |
Hi, |
Pull request created |
Environment
Darwin
v16.16.0
3.0.0
1.0.0
[email protected]
vite
-
-
-
latest i18n nuxtjs module
Reproduction
Create a project with nuxtjs/i18n and create a page like
[name].vue
,Strategy must be 'prefix_and_default' and at least two locales should be created
Now call the url with /äütest123
You will end up in a endless redirect loop
Describe the bug
A endless redirect loop when the URL contains special characters
Related code path:
i18n/src/runtime/utils.ts
Line 309 in 81e2956
As you can see from the log,
routePath
andfullPath
are different but if encode/decode both they result in being the sameRight now they are different which leads to redirect loops
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: