Locale switching is always redirecting to first-loaded page

GeorgeSG
0
GeorgeSG
commented 2 months ago

Version

6.1.0

Reproduction link

https://github.com/GeorgeSG/nuxt-i18n-6.1.0

Steps to reproduce

  1. npm install && npm run dev
  2. Open http://localhost:<port>/en
  3. Click "About" -> you should see "About Page En"
  4. Hover over "Francais" and verify that the link points to "/fr/about"
  5. Switch to French

What is expected ?

You should be navigated to "/fr/about" and you should be seeing "About Page fr"

What is actually happening?

You are navigated to "/fr" (because you initially loaded the index page.

Additional comments?

There is a working and a broken setup in the repo. The only difference is the nuxt-i18n version.

bug
0
rchl
373
rchl
commented 2 months ago

This will be resolved by #418

0
paulgv
4.9k
paulgv
commented 2 months ago
0
Informations
Bug Report โ€ข Open
#c295 - Created 2 months ago