Next.js Discord

Discord Forum

How to opt out of route intercepts?

Unanswered
Northeast Congo Lion posted this in #help-forum
Open in Discord
Northeast Congo LionOP
I'm using the app router's intercepting and parallel routes feature to render my page in a modal.

I need to opt out of this intercept and render the page normally without the modal in certain conditions and I can't find a way to do it.

Redirect doesn't work, router.push still gets intercepted, and location.reload() just reloads me on the previous route. Would appreciate any guidance.

0 Replies