we-dance / platform

Community platform for dancers
https://wedance.vip
GNU General Public License v3.0
45 stars 56 forks source link

[Bug]: Fix page redirect logic of sign in. #343

Closed sftyzxg closed 1 year ago

sftyzxg commented 1 year ago

Contact Details

sftyzxg@gmail.com

What happened?

Steps to reproduce the behavior: 1.Log out your account.

  1. Go to the feed page.
  2. Click into an event.
  3. Click on Join Guest List.
  4. Click sign in.
  5. Sign in with google.
  6. It will redirect to the settings page.
  7. Log out from the settings page.
  8. You will go back to the signin page.
  9. Change the signin page to feed page by editing the link.
  10. Then click into an event page again, join guest list and sign in as previous operation.
  11. This time the redirection will work successfully.
  12. Log out and join guest list again, this time it won't redirect, and next time it will, which is a loop.

Expected behavior: It should go back to the event page that I clicked in at the first time. It shouldn't stay in the signin page after clicking log out from the settings page.

What browsers are you seeing the problem on?

Chrome, Safari

Relevant log output

No response

Code of Conduct