Redirect to original page after login
Currently, when a user logs in they are redirected to get_session(conn, :user_return_to), but in some flows the user_return_to value is never set
Example:
- navigate to
/ads(logged out) - get redirected to sign in
- sign in
- get redirected to
/instead of/ads
Let's make sure every flow that takes the user to the login page also sets the user_return_to session value
/bounty $25
/attempt #101
| Algora profile | Completed bounties | Tech | Active attempts | Options |
|---|---|---|---|---|
| @vikashsprem | 1 bounty from 1 project | TypeScript, JavaScript, Go & more |
Cancel attempt |
/attempt #101
| Algora profile | Completed bounties | Tech | Active attempts | Options |
|---|---|---|---|---|
| @bryans-go | 4 bounties from 1 project | Go |
Cancel attempt |
/attempt #101
Currently, when a user logs in they are redirected to
get_session(conn, :user_return_to), but in some flows theuser_return_tovalue is never setExample:
- navigate to
/ads(logged out)- get redirected to sign in
- sign in
- get redirected to
/instead of/adsLet's make sure every flow that takes the user to the login page also sets the
user_return_tosession value
so that's a redirect callback URL error, I see a few commits already, but if the issue is still unresolved, I can work on it.
Is this issue still relevant?
💡 @melmathari submitted a pull request that claims the bounty. You can visit your bounty board to reward.
/attempt #101
thanks for attempting but there's no active bounty here
lol.. was about to commit some new changes after a bit of testing... Thanks for the update.