react-router-private-protected-routes
react-router-private-protected-routes copied to clipboard
Redirect to last visited page seems not working well.
Despite the fact that everything works well in this example, to my mind it is not the best solution becouse when you visit public page and then you want to log in, there is no redirect to last visited page. Imagine that you are reading article and with no reason you want to log into your account( or for example, you want to add comment), after you logged you should be redirect to this article in case to not looking for this article again. I hope you will head this problem. Thanks for your work, your code helped me a lot.