-
-
Notifications
You must be signed in to change notification settings - Fork 518
Description
Environment
| Operating system | macOS 25.2.0 |
| CPU | Apple M3 Pro (11 cores) |
| Node.js version | v22.21.0 |
| nuxt/cli version | 3.32.0 |
| Package manager | [email protected] |
| Nuxt version | 3.18.1 |
| Nitro version | 2.11.13 |
| Builder | [email protected] |
| Config | - |
| Modules | - |
Reproduction
https://stackblitz.com/edit/bobbiegoede-nuxt-i18n-starter-pfrzjnzy?file=app%2Fapp.vue
Describe the bug
Hi,
I am trying to integrate a headless CMS (Storyblok) into my Nuxt / nuxt‑i18n project.
I need to create a catch‑all route and a preview route to handle the business requirements.
The preview route has nuxt‑i18n disabled because I do not need localization on that route.
The problem is that, when I navigate to the preview route with an SSR request, the matched route is the catch‑all one, because the module prepends the locale to the path, creating a redirect before the correct route is matched.
This does not seem to be a Nuxt bug, and I think it may be related to issue #3871.
In the reproduction demo I provided, you can see the problem.
The expected behavior is that both SSR and non‑SSR navigation match the preview route.
Thanks for your support.
Additional context
No response