Prevent parallel route from being triggered if currently on hard-navigated route
Unanswered
American Woodcock posted this in #help-forum
American WoodcockOP
https://codesandbox.io/p/devbox/login-register-parallel-example-zw9m7m
TL;DR: Try hard-navigating to either "/auth/login" or "/auth/register" and then click on one of the 4 links on the page. It triggers the parallel route. I don't want that.
Does anyone know how I can prevent the modal (a.k.a. the parallel route) from being toggled whenever I hard-navigate to either "/auth/login" or "/auth/register" and then click on either the 2 links in the header or the 2 links that are part of the auth layout (those are tabs so you can quickly tab between the login form and the register form)?
I guess this behavior is expected, and I've played around with route grouping, useSelectedLayoutSegment, etc, but can't figure it out.
TL;DR: Try hard-navigating to either "/auth/login" or "/auth/register" and then click on one of the 4 links on the page. It triggers the parallel route. I don't want that.
Does anyone know how I can prevent the modal (a.k.a. the parallel route) from being toggled whenever I hard-navigate to either "/auth/login" or "/auth/register" and then click on either the 2 links in the header or the 2 links that are part of the auth layout (those are tabs so you can quickly tab between the login form and the register form)?
I guess this behavior is expected, and I've played around with route grouping, useSelectedLayoutSegment, etc, but can't figure it out.