swarooppatilx / scruter

Scruter is a local classifieds and community site designed to bring people together for buying, selling, and exchanging goods and services.
https://scruter.vercel.app
GNU General Public License v3.0
23 stars 106 forks source link

[Feat]: Implement Auto Redirect for Invalid URLs #267

Open RachitSahu26 opened 3 hours ago

RachitSahu26 commented 3 hours ago

Description

Here’s a suggested title and description for the issue regarding implementing an auto-redirect for wrong URLs:

Title: [Feat]: Implement Auto Redirect for Invalid URLs

Description: I propose the implementation of an auto-redirect feature for users who attempt to access invalid or non-existent URLs on the website. This will enhance user experience by automatically directing users to a designated error page or the homepage when they encounter a 404 error.

Proposed Features: Redirect Logic: Implement logic in the application to detect invalid URLs and automatically redirect users to a specified URL (e.g., a custom 404 error page or the homepage). User Feedback: On the redirected page, provide a clear message indicating that the original URL was not found, along with suggestions for navigating to other parts of the site. Logging: Optionally, log the invalid URL attempts for future analysis and troubleshooting.

Screenshots

https://github.com/user-attachments/assets/0dd22dc9-bb00-42bc-b3f9-5f290ced5eca

Checklist

github-actions[bot] commented 3 hours ago

👋 Thank you @RachitSahu26 for raising an issue! We appreciate your effort in helping us improve. Our team will review it shortly. Stay tuned! If you need further assistance or want to join the conversation, feel free to join our Discord server: Discord Link