Skip to content
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

When there are Chinese characters in the route param, the route navigation does not behave as expected #2439

Closed
dongnaebi opened this issue Sep 23, 2023 · 2 comments
Labels
🔨 p3-minor-bug Priority 3: a bug in an edge case that only affects very specific usage routing v8

Comments

@dongnaebi
Copy link

dongnaebi commented Sep 23, 2023

Environment

  • Operating System: Windows_NT
  • Node Version: v18.16.1
  • Nuxt Version: 3.7.3
  • CLI Version: 3.9.0
  • Nitro Version: 2.6.3
  • Package Manager: pnpm@7.13.6
  • Builder: -
  • User Config: modules, colorMode, gtag, googleFonts, i18n, routeRules, nitro, build
  • Runtime Modules: @nuxtjs/tailwindcss@6.8.0, @nuxtjs/color-mode@3.3.0, @nuxtjs/i18n@8.0.0-rc.4-28252997.568c274, @nuxt/content@2.8.2, nuxt-gtag@1.1.1, @nuxtjs/google-fonts@3.0.2
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/nuxt-starter-uxy1hj?file=pages%2Fsearch%2F%5Bkeyword%5D.vue

Reproduction Steps

  • Go search page
  • Enter English word and click Search button
  • Enter another English word and click Search button again
  • Click "Go back" button twice to Home page
  • Go search page again
  • Enter Chinese word(你好) and click Search button
  • Enter another Chinese word(有问题) and click Search button again
  • Click "Go back"

At this time, no matter how many times I click, I can’t return to the home page.

Not only that, but if I enter any other text to search, nothing happens.

If I delete strategy: 'no_prefix' in nuxt.config.ts, it's work.

Another Reproduction

https://stackblitz.com/edit/nuxt-starter-jrhocc?file=pages%2Fsearch%2F%5Bkeyword%5D.vue

Reproduction Steps

  • Click the button to switch language, and make sure there is a cookie with key lang
  • Click "Go search page"
  • Enter something and click Search button

Nothing to change, if set detectBrowserLanguage.useCookie to false, it's work, or if the route param is an English word, it's work too.

Describe the bug

See Reproduction Steps

Additional context

No response

Logs

No response

@BobbieGoede BobbieGoede added the 🔨 p3-minor-bug Priority 3: a bug in an edge case that only affects very specific usage label Oct 3, 2023
@BobbieGoede
Copy link
Collaborator

This issue seems to be fixed by #2518, updated reproduction here. Let me know if you're still experiencing this issue after installing the edge channel!

@dongnaebi
Copy link
Author

It's work, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 p3-minor-bug Priority 3: a bug in an edge case that only affects very specific usage routing v8
Projects
None yet
Development

No branches or pull requests

3 participants