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 bad URL routes to the front page #644

Merged
merged 1 commit into from
May 7, 2024
Merged

Conversation

cstephen
Copy link
Contributor

@cstephen cstephen commented Jan 6, 2024

Closes #632.

This PR redirects unrecognized URL paths to the front page of the app, using the same Nuxt default route configuration we used for Arctic-EDS.

To test, run the app and enter any bogus URL path of your choosing (e.g., http://localhost:3000/foo/bar) and observe that the app redirects to the front page. All known routes should continue to work as expected.

@brucecrevensten brucecrevensten merged commit fa9c046 into main May 7, 2024
1 check failed
@brucecrevensten brucecrevensten deleted the redirect_bad_urls branch May 7, 2024 21:36
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.

Defend against malformed URL fragments
2 participants