Next.js Discord

Discord Forum

Parallel routes + intercepting routes + dynamic url [id]

Unanswered
Britannia Petite posted this in #help-forum
Open in Discord
Avatar
Britannia PetiteOP
Hello !
using next.js 14
I want to open a modal (using slot ?) when the route match /photo WITH dynamic route (photo/[id]), how can I do this ?
I know it has something to deal with parrallel routes, intercepting routes ...
I've tried this so far, not working:

app/
- (main)/
- - @modal/
- - - - (..)photo/
- - - - - [id]/
- - - - - -page.tsx
- - photo/[id]
- layout.tsx

thanks for helping!

1 Reply

Avatar
Singapura
Hi, have you tried placing it outside of (main)?
I had issue before when I had intercepting route in grouping folder