Loris
Loris copied to clipboard
[Login] Add login suggestion and redirection for error 403
Brief summary of changes
Whenever an unauthenticated gets a 403 error, they can try logging in and be redirected to the page they got the 403 on.
- [ ] Have you updated related documentation?
Testing instructions (if applicable)
- Go to a page that exists and require authentication while not being authenticated.
- Click "Try logging in"
- Log in (after one or several tries)
- You are redirected to the previous page
I implemented this using an URL query parameter, but I guess using window.history could also have worked. If anyone has an opinion on this please tell me.
@ridz1208 can you review?
I just noticed that I did this PR quite some time ago and wasn't aware of the testing plan at the time, gonna add it before merging.