Next.js Discord

Discord Forum

Is it possible to go from the intercepted version of a route to the non-intercepted version?

Unanswered
Dwarf Crocodile posted this in #help-forum
Open in Discord
Dwarf CrocodileOP
Hi all, Powder here :JinxWave:

I'm using next 15, and react 19

I'm trying to set up an intercepted route that should show a modal when navigating from a specific route, but I'd also like a button, in the modal, to "maximize" the modal, or rather, go to the full page view.

I can make this work by doing a hard navigation, ie. location.href = "/whatever-route". The issue becomes that my trpc/useQuery cache seems to be "forgotten" when I do this.

My question is essentially, is it possible to go to the non-intercepted version of a route, from the intercepted version?

Any and all insight is greatly appreciated :JinxHeart:

1 Reply

Barbary Lion
I need to know the same