popup from parallel route is not closed when redirecting to a different route #65923
Unanswered
Tushant
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
-
When login is successful where I am using next-auth for auth and session and parallel route concept for showing login UI on popup the redirection (router.push) does not work. The popup does not get close. I tried using router.back() which closes the popup but i dont see fresh data like user profile dropdown in the navigation. I have to refresh to see user profile in the nav. Even if router.back works I cannot use that because i have to redirect after successful login based on the searchParams because if I am in the /product/abc route and I login from that page I need to be redirected to /product/abc.
How do I close popup when using parallel route with latest data available in UI ?
Beta Was this translation helpful? Give feedback.
All reactions