Parallel Route for modal shared between 2 outer routes
Unanswered
Basset Artésien Normand posted this in #help-forum
Basset Artésien NormandOP
Good Morning.
I have an app for movies and series. Often things can be shared. I am trying to see if I can share a modal between them. They have 2 separate routes and this is how it looks currently.
But they need their own
Is there anyway to get the top route : movies or series as a prop ? without having to merge movies and series together
I have an app for movies and series. Often things can be shared. I am trying to see if I can share a modal between them. They have 2 separate routes and this is how it looks currently.
└── ðŸ“(browse)
└── old_layout.tsx
└── ðŸ“movies
└── ðŸ“@modal
└── ðŸ“[id]
└── page.tsx
└── page.tsx
└── default.tsx
└── layout.tsx
└── movies.tsx
└── page.tsx
└── ðŸ“series
└── ðŸ“@modal
└── ðŸ“[id]
└── page.tsx
└── page.tsx
└── default.tsx
└── layout.tsx
└── series.tsx
└── page.tsxBut they need their own
layout.tsxIs there anyway to get the top route : movies or series as a prop ? without having to merge movies and series together