Next.js Discord

Discord Forum

General Parallel routes

Unanswered
Polar bear posted this in #help-forum
Open in Discord
Polar bearOP
Hi, I have two primary route groups in my dashboard

/dashboard/ ... and sub-routes inside like: /dashboard/overview etc

and /dashboard/branches/[branchid]/ and sub-routes inside like: /dashboard/branches/[branchid]/overview

I have sidebar for each one of the primary route groups

I'm using parallel routes to have route based sidebar
but the issue is that I should make a parallel route for each route inside general routes to prevent 404 from happening

each time I add a new page either in /dashboard or /dashboard/branches/[branchid]/ I should specify it in the slot

so how can I make it inherit from it's parent route group

1 Reply

Polar bearOP
Solved it by [...catchAll]