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

Fix /search(/) redirect and previous page bug #2078

Merged
merged 2 commits into from
Oct 21, 2020

Conversation

thostetler
Copy link
Member

@thostetler thostetler commented Oct 20, 2020

Remove code in router that was causing history to skip back 2 when seeing /search endpoint and instead allowing those routes to be caught be the normal router handlers.

When an error occurs on the route /search, it defaults back to index
page.  But this error will happen with any bare (no params) search, so
you can get into a loop where the back button is constantly re-pushing
the index-page.
This now replaces the history entry on error, which should fix it.
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.

None yet

1 participant