i18n icon indicating copy to clipboard operation
i18n copied to clipboard

`NuxtLinkLocale` routing breaks for pageMeta paths with nested routes

Open warflash opened this issue 3 weeks ago • 0 comments

Environment


  • Operating System: Linux
  • Node Version: v18.20.3
  • Nuxt Version: ^3.12.2
  • CLI Version: 3.12.0
  • Nitro Version: -
  • Package Manager: [email protected]
  • Builder: -
  • User Config: devtools, experimental, modules, i18n
  • Runtime Modules: @nuxtjs/i18n@^8.3.1
  • Build Modules: -

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

warflash avatar Jun 25 '24 14:06 warflash