This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make search queries optional in Backbone router
Before this change: logged in users going to `/public/search` get redirected to `/help`. Now: it correctly redirects to `/search/`. Using the trailing slash, with or without a query, *did* work, so this just fixes a weird edge case.
- Loading branch information
be8d48d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This title is actually a little wrong; queries were always optional, we're just explicitly wrapping the trailing slash and the query in parens to indicate the whole thing is optional.