NuxtN
Nuxt12mo ago
LTroya

Exclude pages from nested routes

Hi guys,

Is there a way to isolate pages in nested layouts?

Example:

[category]/data-reports/forecast - nested route
[category]/data-reports/prices - nested route
[category]/data-reports/forecast/[id] - not nested route
[category]/data-reports/prices/[id] - not nested route

Also, I tried:

  • Using the app/router.options.ts but it seems to override all my routes
  • Using the pages:extend hook, however, file routing seems to have priority over that hook.
Maybe I am missing something, not sure if the support for this property can help to achieve this: #29366

I will appreciate any help or hint 🙏
Was this page helpful?