aditya-bhaumik / Pathsphere

PathSphere is a comprehensive platform designed to connect students with scholarship opportunities and educators with job openings. It features dynamic search tools and community discussions to enhance access to educational and career resources.
https://pathsphere.netlify.app/
MIT License
126 stars 290 forks source link

Fix 404 Page Redirection for Invalid Routes #1193

Closed Aman-G-upta closed 2 weeks ago

Aman-G-upta commented 2 weeks ago

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

https://github.com/user-attachments/assets/8e61df97-dd08-4b7e-a08a-b60acca8d275

Please merge it @aditya-bhaumik

netlify[bot] commented 2 weeks ago

Deploy Preview for pathsphere ready!

Name Link
Latest commit 26f07c0bd0836c853e51c5dc074eb3672ba4312a
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.