page infinitely loading in spa mode

divisey
0
divisey
commented 2 months ago

Version

v6.3.0

Reproduction link

https://github.com/divisey/nuxt-i18n-path-issue

Steps to reproduce

yarn

yarn dev

then visit http://localhost:3000/#/es/ in browser

What is expected ?

it should work well when url is either http://localhost:3000/#/es, http://localhost:3000/#/es/ or http://localhost:3000/#/es/?a=1

What is actually happening?

it works when url is http://localhost:3000/#/es, but page infinitely loading when you visit http://localhost:3000/#/es/, or when you have a
query like http://localhost:3000/#/es?a=1

Additional comments?

this issue does not appear in v6.0.0, maybe somewhere has a bug in the later version.

bug
0
rchl
578
rchl
commented 2 months ago

Note: This bug triggers because now we are triggering all the language detection code on navigating in SPA mode while previously that was broken. So that fix uncovered this bug where due to an extra trailing slash we are not able to match the current page with an existing route.

0
Informations
Bug Report โ€ข Open
#c322 - Created 2 months ago