Closed danbaechtold closed 3 months ago
My bad, I've made a mistake in the pages configuration:
The ../index
was missing in the pages key.
This is the correct configuration:
customRoutes: 'config',
pages: {
'tours/index': {
en: '/trails-en',
nl: '/trails-nl',
},
'tours/[provider]/index': {
en: '/trails-en/[provider]',
nl: '/trails-nl/[provider]',
},
'tours/[provider]/[slug]': {
en: '/trails-en/[provider]/[slug]',
nl: '/trails-nl/[provider]/[slug]',
},
}
@danbaechtold You saved my day, thanks! Couldn't find any docs with that folder structure
Environment
Stackblitz (Reproduction starter (v8 and higher))
Build Modules: -
Reproduction
https://stackblitz.com/edit/bobbiegoede-nuxt-i18n-starter-qr67sy
Describe the bug
Having this config:
And these pages:
I get the following results:
Additional context
No response
Logs
No response