tv icon indicating copy to clipboard operation
tv copied to clipboard

Redirect to original page after login

Open zcesur opened this issue 1 year ago • 8 comments

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

zcesur avatar Sep 19 '24 15:09 zcesur

/bounty $25

zcesur avatar Sep 19 '24 15:09 zcesur

/attempt #101

Algora profile Completed bounties Tech Active attempts Options
@vikashsprem 1 bounty from 1 project
TypeScript, JavaScript,
Go & more
Cancel attempt

vikashsprem avatar Sep 19 '24 15:09 vikashsprem

/attempt #101

Algora profile Completed bounties Tech Active attempts Options
@bryans-go 4 bounties from 1 project
Go
Cancel attempt

divanshu-go avatar Sep 27 '24 17:09 divanshu-go

/attempt #101

saisandeepramavath avatar Oct 08 '24 18:10 saisandeepramavath

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

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.

GauravBurande avatar Oct 10 '24 18:10 GauravBurande

Is this issue still relevant?

sky-39 avatar Oct 31 '24 08:10 sky-39

/attempt #101

Options

melmathari avatar Nov 24 '24 19:11 melmathari

💡 @melmathari submitted a pull request that claims the bounty. You can visit your bounty board to reward.

algora-pbc[bot] avatar Nov 24 '24 23:11 algora-pbc[bot]

/attempt #101

melmathari avatar May 27 '25 21:05 melmathari

thanks for attempting but there's no active bounty here

zcesur avatar May 27 '25 21:05 zcesur

lol.. was about to commit some new changes after a bit of testing... Thanks for the update.

melmathari avatar May 27 '25 22:05 melmathari