You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with nested routes are not working. It appears that the parent route is being called multiple times causing it to pick up the params that are passed to the child route
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
aaronksaunders
changed the title
Seems Like Neste Routes Are Not Working
Seems Like Nested Routes Are Not Working
Aug 27, 2023
The 2nd one is Nuxt behaviour. pages/foo.vue will always take precedence over pages/foo/[slug].vue, so if you want to match the foo route differently than the foo/a, you need to rename pages/foo.vue into pages/foo/index.vue and it will work as expected.
Environment
See information in Stackblitz example
Reproduction
https://stackblitz.com/edit/nuxt-starter-e96dg7?file=pages%2Ffoo.vue
Describe the bug
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: