Redirect to login instead of showing 404 page #37
Labels
No labels
A: API
A: Backend
A: Federation
A: Front-End
A: I18N
A: Meta
A: Security
Build
C: Bug
C: Discussion
C: Enhancement
C: Feature
Compatibility
Dependency
Design
Documentation
Good first issue
Help welcome
Mobile
Rendering
S: Blocked
S: Duplicate
S: Incomplete
S: Instance specific
S: Invalid
S: Needs Voting/Discussion
S: Ready for review
Suggestion
S: Voted on Loomio
S: Wontfix
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Plume/Plume#37
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When a page is not available because the user is not logged in, Rocket sends a 404 page. We should instead redirect to the login page with an explanation.
more or less related : going to /logout without being connected generate a 500
Edit:
Actually /logout is about unwrap()ing on a value which may be None, it's more related to #21 than to this
I guess this have been close by #45 (tell me if it's not the case).
whoops, looks like I forgot to look at
src/routes/user.rs, there are three routes still returning 404 here. I'll push something today or tomorrow to fix that