Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect to 404 page when posting does not exist #144

Closed
LenaNguyen opened this issue Feb 13, 2022 · 0 comments · Fixed by #186
Closed

Redirect to 404 page when posting does not exist #144

LenaNguyen opened this issue Feb 13, 2022 · 0 comments · Fixed by #186
Assignees

Comments

@LenaNguyen
Copy link
Member

LenaNguyen commented Feb 13, 2022

For the volunteer/posting/:id route, if an id for a posting that does not exist is provided, redirect to the NotFound component. Currently, the posting details page will just render a blank page.

This will involve editing frontend\src\components\pages\volunteer\posting\VolunteerPostingDetails.tsx.
You may also want to use the Redirect component from react router.

@LenaNguyen LenaNguyen changed the title Handle case when posting does not exist for posting details page Redirect to 404 page when posting does not exist Feb 20, 2022
@briantu briantu assigned briantu and unassigned jiarucao Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants