nuxt-modules / i18n

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

`NuxtLinkLocale` routing breaks for pageMeta paths with nested routes #2989

Open warflash opened 6 days ago

warflash commented 6 days ago

Environment


Reproduction

https://stackblitz.com/edit/github-yf4bvk?file=app.vue,nuxt.config.ts,pages%2Findex.vue,pages%2Fdb%2Fitem%2Flist.vue,pages%2Fdb.vue

Describe the bug

NuxtLinkLocale does not prefix the link URL with the current locale if the pageMeta path is a nested page

Additional context

This worked fine in nuxt 3.11, I assume some of the changes here https://github.com/nuxt/nuxt/pull/27134 cause issues in the i18n module

No response

Logs

No response