nuxt-modules / i18n

I18n module for Nuxt
https://i18n.nuxtjs.org
MIT License
1.75k stars 483 forks source link

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

Closed dongnaebi closed 1 year ago

dongnaebi commented 1 year ago

Environment

Reproduction

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

Reproduction Steps

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

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 commented 1 year ago

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 commented 1 year ago

It's work, thanks