i18n
i18n copied to clipboard
middleware infinite loop caused by `@nuxtjs/i18n`
Environment
- Operating System: Darwin
- Node Version: v20.9.0
- Nuxt Version: 3.8.2
- CLI Version: 3.10.0
- Nitro Version: 2.8.0
- Package Manager: [email protected]
- Builder: -
- User Config: modules, devtools, i18n, experimental
- Runtime Modules: @nuxtjs/[email protected]
- Build Modules: -
Reproduction
š Reproduction
- Open Reproduction
- Click "Open in New Tab"
- Enter route
/reset?email=test%40test.devvia change browser URL - Check the terminal output, it will loop infinitely between the two middlewares
https://github.com/nuxt-modules/i18n/assets/39984251/95ffb129-fb16-4dcb-b31d-06a49f113f5b
Describe the bug
Upon entering a page with the query string email=test%40test.dev, it triggers an infinite loop between the router middlewares within the Nuxt server. when accessing the page with [email protected], this issue does not manifest.
Your attention to this matter would be greatly appreciated. Please let me know if further information or clarification is needed. Thank you for your time and support in resolving this issue.
This perhaps related to issue #2505
Thanks @Mini-ghost for posting, I have the same issue! Although in my case it's currently just that when i'm on /projects/ and want to redirect to /auth/login, it redirects first to /projects and then goes into the infinite loop.
This is still happening for me when the URL has a parameter where the value contains the + symbol. For example: [email protected] triggers an infinite loop.
Iād appreciate it if you could fix it. Thanks!
Any updated on this ?
Sorry, I know it has almost been two years š
I tried to reproduce this issue with the latest releases of nuxt and nuxt-i18n v9, but it looks like this has been resolved, please let me know if you're still running into this issue after updating!