Parallel routes + intercepting routes + dynamic url [id]
Unanswered
Britannia Petite posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
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!
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](https://cdn.discordapp.com/embed/avatars/1.png)
Singapura
Hi, have you tried placing it outside of (main)?
I had issue before when I had intercepting route in grouping folder
I had issue before when I had intercepting route in grouping folder