Next.js Discord

Discord Forum

Intercepting nested dynamic routes (..folder1)[id][name] doesn't work?

Unanswered
Cape lion posted this in #help-forum
Open in Discord
Cape lionOP
Wondering if this is a bug, not possible or if I'm just doing it wrong. I have a fully working implementation of intercept + parallel routing for a modal view of another route.

This structure works perfectly:

app
└─ [domain]
   ├─ listings
   │  ├─ [slug]
   │  │  └─ page.tsx 
   │  └─ page.tsx
   └─ search
      └─ @modal
         └─ (..)listings
            ├─ [slug]
            │  └─ page.tsx
            └─ default.tsx


What I would like to do is add a second dynamic route after [slug]

app
└─ [domain]
   ├─ listings
   │  ├─ [slug]
   │  │  └─ [address]
   │  │     └─ page.tsx
   │  └─ page.tsx
   └─ search
      └─ @modal
         └─ (..)listings
            ├─ [slug]
            │  └─ [address]
            │     └─ page.tsx
            └─ default.tsx


This doesn't work. Just goes directly to the original route. What am I doing wrong? Or, is this a bug/intended behaviour?

0 Replies