Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Routing breaks for pageMeta paths with nested routes #2989

Open
warflash opened this issue Jun 25, 2024 · 1 comment
Open

Routing breaks for pageMeta paths with nested routes #2989

warflash opened this issue Jun 25, 2024 · 1 comment

Comments

@warflash
Copy link
Contributor

warflash commented Jun 25, 2024

Environment


  • Operating System: Linux
  • Node Version: v18.20.3
  • Nuxt Version: ^3.12.2
  • CLI Version: 3.12.0
  • Nitro Version: -
  • Package Manager: npm@10.2.3
  • 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 nuxt/nuxt#27134 cause issues in the i18n module

No response

Logs

No response

@warflash
Copy link
Contributor Author

To briefly add to this, this is not just related to the routing of NuxtLinkLocale but instead the entire routing process. So direct access to /en/db/items in the example repro leads to a hard 404. Initially I was thinking it was only the link component for some reason

@warflash warflash changed the title NuxtLinkLocale routing breaks for pageMeta paths with nested routes Routing breaks for pageMeta paths with nested routes Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants