Disable Route Interception for nested routes #59433
Unanswered
phibr0
asked this question in
App Router
Replies: 1 comment 2 replies
-
|
Did somebody came up with a solution to that problem? Pattern seems pretty common. It would be great to have an ability to bail from intercepting routes, like a Link prop or something... |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am currently working on a Next.js project where I have implemented a modal that opens when navigating to a specific route (e.g.,
/[id]/). This functionality is working as expected.However, I have encountered a challenge when trying to open a different page within the same modal. While I have managed to achieve this, I am facing an issue when the user is on the standard page (the non-modal route) and clicks a link to open the subpage. In this scenario, the subpage is intercepted and opens in a modal, which is not the desired behavior.
To illustrate, here is my route structure:
I am looking for a way to disable route interception for this specific case, so that when the user is on the standard page and clicks the link to the subpage, it opens as a standard page rather than in a modal.
Beta Was this translation helpful? Give feedback.
All reactions