Next.js Discord

Discord Forum

Parallel route in different route groups

Unanswered
Paul posted this in #help-forum
Open in Discord
Hello,

I was wondering if it's possible to have a parallel route for modal rendering in a different route group, for example

πŸ“ (v2)
   πŸ“„ layout.tsx
   πŸ“ invites
      πŸ“„ page.tsx
πŸ“ (v3)
   πŸ“„ layout.tsx
   πŸ“ invites
      πŸ“ @modal
         πŸ“ (.add)
            πŸ“„ page.tsx
         πŸ“„ default.tsx
      πŸ“ add
         πŸ“„ page.tsx
      πŸ“„ layout.tsx


Currently when I reload the page /invites/add I see the (v3)/invites/add/page.tsx, but when I try to navigate to /invites/add I would expect to see (v3)/invites/@modal/(.add)/page.tsx inside the layout, but instead I hit a 404 page.

Is it possible to have parallel routes inside different route groups?

0 Replies