Next.js Discord

Discord Forum

Authentication modal with intercepting & parallel routes

Unanswered
Vespid wasp posted this in #help-forum
Open in Discord
Vespid waspOP
Hi all

I'm trying to create an authentication flow with intercepting and parallel routes.

The navigation flow when I am in modal works perfectly. but when I try to navigate from the page directly, I get a 404 error. I just have to reload my browser to see the page I want.

I don't understand what the problem is, I need your help.

3 Replies

Vespid waspOP
This is my main layout with modal
Vespid waspOP
I'm updating this post because I still haven't found a solution to this problem.
Northeast Congo Lion
Also find this issue on nextjs github -> https://github.com/vercel/next.js/issues/64808
It's quite similar to the one we're experiencing.
I've updated my stackblitz example accordingly to the answer from ztanner on the issue, but still i'm not able to make things works properly
Here the updated stackblitz -> https://stackblitz.com/edit/stackblitz-starters-rbuypp