Redirect fails to redirect from a route group to another route group #67266
Unanswered
davidlefranc
asked this question in
App Router
Replies: 0 comments
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'm seeing incorrect "redirect" behavior that doesn't cause any errors: neither in the terminal, nor in the browser console. I have two route groups. One route group for welcoming visitors with a login form on a commercial home page. Another route group to access the service after logging in. When the user logs in, I use "redirect" in a "server action", pointing to a page in the second route group. Once the user is correctly logged in, the browser remains stuck on the home page and does not display the page requested in the second route group. What's surprising is that the code for this page that isn't displayed seems to be executed anyway: if I place a "console.log" on this page, I see it in the terminal, even though the page containing it isn't displayed in the browser. Can anyone help? There's no error code, nothing to enable debugging...
Beta Was this translation helpful? Give feedback.
All reactions