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 Note is Not Found #276

Open
Tushar504 opened this issue Nov 14, 2024 · 0 comments · May be fixed by #277
Open

Redirect to 404 Page When Note is Not Found #276

Tushar504 opened this issue Nov 14, 2024 · 0 comments · May be fixed by #277
Assignees

Comments

@Tushar504
Copy link

Description:

Currently, when a note is not found (i.e., when the API returns a notFound response), the web application continues to display the skeleton loader for the note. This behavior doesn't inform the user that the note couldn't be found.

Steps:

  • Modify the code to detect when the API returns a notFound response (i.e., status code 404).
  • When this happens, redirect the user to the /error route (or an equivalent 404 page).
  • Ensure that the 404 page properly displays the error message and code.
@Tushar504 Tushar504 self-assigned this Nov 14, 2024
@Tushar504 Tushar504 linked a pull request Nov 16, 2024 that will close this issue
@Tushar504 Tushar504 linked a pull request Nov 16, 2024 that will close this issue
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.

1 participant