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

[Feature]: Implement Auto-Redirect to Homepage for Invalid URLs #187

Open
RachitSahu26 opened this issue Oct 28, 2024 · 3 comments
Open
Labels
question Further information is requested

Comments

@RachitSahu26
Copy link

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Is your feature request related to a problem? Please describe.
Users may encounter a frustrating experience when they mistakenly enter an invalid or incorrect URL on the site. Currently, no redirection mechanism is in place to guide users back to a meaningful page, such as the homepage, when they land on a nonexistent route.
Describe the solution you'd like
A clear and concise description of what you want to happen.
I would like to implement an auto-redirect feature. When users visit a URL that does not match any valid route, they should be automatically redirected to the homepage, ensuring a smoother user experience. This will prevent confusion and provide a consistent navigation flow across the site.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Displaying a custom "404 - Page Not Found" page with a link to the homepage.
Redirecting users to a specific fallback route, such as a "Help" or "Explore" page.
Showing a toast notification informing users of the invalid URL and offering a redirection option.
Additional context
Add any other context or screenshots about the feature request here.
This feature will improve user experience by preventing dead ends. Below are some examples of other websites that implement similar auto-redirects or provide meaningful fallback pages. If screenshots or mockups are needed, I can provide those too.

redirect.mp4
Copy link
Contributor

🎉 Welcome to CodeCache! 🎉

Thank you for opening your first issue! We're excited to have you contributing to the project.

Before you get started, please make sure to check out our contributing guidelines and coding standards to ensure that everything is aligned with the project's workflow. If you have any questions or need help along the way, don't hesitate to ask.

We appreciate your input and look forward to collaborating with you. 🚀

Happy coding!

@RachitSahu26
Copy link
Author

Assign this issue to me with level 3 i will complete it under 1 hour @notsoocool

@notsoocool
Copy link
Owner

@RachitSahu26 i like your idea but, we already have a custom 404 page, so ig we don't need any redirection for now.

@notsoocool notsoocool added question Further information is requested and removed gssoc-ext hacktoberfest-accepted labels Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants