Next.js Discord

Discord Forum

“Layered” or “stacked” routes?

Unanswered
New Guinea Freshwater Crocodile posted this in #help-forum
Open in Discord
New Guinea Freshwater CrocodileOP
I’m working on a site where navigating to new pages should actually open the pages on top of existing content, much like a modal but with each new modal layer stacked on top of the previous. So if you’re two levels deep into the site (like a photo gallery at /photos/1234) you would see the home page with a gallery layer on top and a single photo on top of that. I know you can do something similar with Intercepting Routes, but the problem there is if you go straight to /photos/1234 you won’t see the home or gallery pages under the selected photo. How might I achieve this?

1 Reply

New Guinea Freshwater CrocodileOP
Is this a good use case for Parallel Routes?