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 the root route on undefined route #1095

Merged

Conversation

Dezert01
Copy link
Contributor

Summary

Add a redirection to the main route if the given route is undefined

Test Plan

Any other route than /xyz should be replaced now with root route "/"

Issues

Closes #1047

Future Followup

Consider enhancing this redirection logic by checking if a valid route exists higher in the navigation stack and redirecting to it instead of the root route.

@Dezert01
Copy link
Contributor Author

@MinhxNguyen7 Hi! Could you check this out and let me know if it’s what you had in mind? Open to any feedback!

@MinhxNguyen7 MinhxNguyen7 self-requested a review December 31, 2024 19:21
Copy link
Member

@MinhxNguyen7 MinhxNguyen7 left a comment

Choose a reason for hiding this comment

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

LGTM!

@MinhxNguyen7 MinhxNguyen7 merged commit 0e78244 into icssc:main Jan 6, 2025
2 of 4 checks passed
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 this pull request may close these issues.

Redirect to home page after invalid route
2 participants