After login, redirect back to original page instead of going to dashboard
Currently, when directing people to https://rysolv.com/issues/add for adding an issue and placing a bounty on it, they get automatically redirect to https://rysolv.com/signin. After signing in with GitHub, they then get redirect to https://rysolv.com/dashboard and will thus need to find their way back to the page where they can add the issue (which btw, I don't see a clear option for... it appears you first have to scroll all the way down to click "Browse all issues", but that's another problem).
Suggested solution
To make the flow less confusing, I'd suggest to redirect people back to the page they were on before logging in. Especially in the case where they got automatically redirected to the login page, but preferably also when they were on any other page and explicitly clicked Login.
bjorn has contributed $20.00 to this issue on Rysolv.
The total bounty is now $20.00. Solve this issue on Rysolv to earn this bounty.
Appreciate the bounty @bjorn. We've had some routing / redirect issues for a while. It's a good impatus to build in some page history / sign-in redirects.
Two strategies for this going forward.
- Removing the sign-in requirement to post an issue. This was probably an unnecessary implementation from get get-go. I was worried of people spamming issues. But honestly that doesn't seem like a problem that's materialized.
- Keeping a route history, and redirecting to certain pages after sign-up. This would be on a case by case basis however. Ex:
-
Front page => sign upIMO this should take users to the dashboard -
Issues => sign upthis should redirect back to the issues -
job listing => sign upthis should redirect back to the job listing
-