i18n icon indicating copy to clipboard operation
i18n copied to clipboard

middleware infinite loop caused by `@nuxtjs/i18n`

Open Mini-ghost opened this issue 1 year ago • 3 comments

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

  1. Open Reproduction
  2. Click "Open in New Tab"
  3. Enter route /reset?email=test%40test.dev via change browser URL
  4. 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.

Mini-ghost avatar Nov 28 '23 14:11 Mini-ghost