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

Fix 404 Page Redirection for Invalid Routes #1193

Merged
merged 1 commit into from
Nov 10, 2024

Conversation

Aman-G-upta
Copy link
Contributor

@Aman-G-upta Aman-G-upta commented Nov 9, 2024

Fixes #1172

This pull request improves the handling of invalid routes by implementing a proper redirection to the 404.html page for any invalid or non-existent paths on the website. Previously, navigating to a non-existent route would display a "File not found" error, causing a poor user experience. Now, the application gracefully redirects to a custom 404 page, improving the overall usability and consistency.

Before
image

After

Please refer to the video below for a detailed overview and clear understanding

Screen.Recording.2024-11-09.233205.mp4

Please merge it @aditya-bhaumik

Copy link

netlify bot commented Nov 9, 2024

Deploy Preview for pathsphere ready!

Name Link
🔨 Latest commit 26f07c0
🔍 Latest deploy log https://app.netlify.com/sites/pathsphere/deploys/672fa41321ecf3000831c842
😎 Deploy Preview https://deploy-preview-1193--pathsphere.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, Aman-G-upta, for creating this pull request and contributing to Pathsphere! 💗

The maintainers will review this Pull Request and provide feedback as soon as possible! 😇
We appreciate your patience and contribution, Keep up the great work! 😀

@vivekvardhan2810 vivekvardhan2810 merged commit 96e5980 into aditya-bhaumik:main Nov 10, 2024
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding a custom 404 page
2 participants