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
3 Replies
You can change the layout using definePageMeta
@warflash I did change the layout but the view is nested in NuxtPage of [id] index
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