lakesare / memcode

Spaced-repetition: with real formatting.
http://memcode.com
MIT License
335 stars 72 forks source link

Fixed issue #27 - After user signs in - they should be redirected back #80

Closed CoderToCode closed 4 years ago

CoderToCode commented 4 years ago

commit for issue #27

lakesare commented 4 years ago

Good solution, @CoderToCode. Interesting use of the sessionStorage, I didn't know about this api.

One issue with this solution, is that if the user clicks the 'Sign In' button on the /courses page, - the user will be redirected to that /courses page instead of getting redirected to their /courses/learning page where they could see the welcome message.

I think we should only redirect user back to the: