Nested routing

Say that I have nested pages for [id] that I display with NuxtPage ... but starting the same route I also have some other page that I don't want in that NuxtPage and does in fact have other layout ... page would be under path /{id}/success-board/{id} But, how can I tell Nuxt I dont want that page under previous page NuxtPage? Attaching link of file routing setup
No description
3 Replies
warflash
warflash2y ago
You can change the layout using definePageMeta
FrozenSpirit
FrozenSpirit2y ago
@warflash I did change the layout but the view is nested in NuxtPage of [id] index
warflash
warflash2y ago
hmm Well you could check whether the route contains "success-board" and then conditionally render a different version of the NuxtPage in your index file
Want results from more Discord servers?
Add your server