Next.js Discord

Discord Forum

Route interception behavior

Unanswered
Least Bittern posted this in #help-forum
Open in Discord
Least BitternOP
Hello everyone,

I'm currently facing a challenging issue with route interception in my Next.js application and would really appreciate any guidance or insights from the community.

Issue Summary:
The route interception in my application is behaving inconsistently. Specifically, it fails to work correctly after the first click when accessed from certain parts of the app.

Detailed Explanation:
https://github.com/vercel/next.js/issues/59440

To Reproduce the Issue:
https://github.com/RexGalicie/app-route-i18-test

Go to either /domain2 or the home page /.
Click on a link that directs to /domain1/test/[id].
Notice that the route does not get intercepted correctly after the first click. This is contrary to what happens when the link is accessed from /domain1, where it works as expected.

Expected Behavior: I expect the route to be intercepted consistently, regardless of the starting page in the application. Whether the link is accessed from /domain2, /, or any other page, the interception should work every time, not just on the first click.

1 Reply

Least BitternOP
up