DEV Community

Discussion on: Vue SPA, router guard with redirect after login

Collapse
 
mygnu profile image
Harry Gill

That was my first implementation, problem with that is if the user clicks on a link to the app from an email perhaps. I wanted to serve the page if logged in, or remember the link and redirect to login. After that are done, the logic above would serve the desired page.