How to redirect users to same page after log in

I think you got my question wrong.
Suppose I am in /browse route and unauthenticated .
If I click on login button from the navigation bar , I will be taken too login page . after login is done .
I want the user to go back to /browse page only .
Similarly for any route , the user should stay on that route only after the login is completed .

Coming to the use case .
Coinsider you are buying shoes online , that route will be /products/shoes.
Something like .As he click on buy button , he is asked to login .After the log in is done , you wouldn’t want the user to go back to landing page right ?

1 Like