You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we directly open /parameters route, we will be redirected to login page, and after success login, redirected to /profile
But I want to save original route we opened (via link or directly in address bar etc.) and redirect to it after success login.
I can add beforeEach hook on router and save (in some store) "last route if it not login", but this way not looks good to me.
Is there is a better way to do it ?
The text was updated successfully, but these errors were encountered:
Assume that we have routes like this
If we directly open
/parameters
route, we will be redirected to login page, and after success login, redirected to/profile
But I want to save original route we opened (via link or directly in address bar etc.) and redirect to it after success login.
I can add
beforeEach
hook on router and save (in some store) "last route if it not login", but this way not looks good to me.Is there is a better way to do it ?
The text was updated successfully, but these errors were encountered: