Skip to content

Commit

Permalink
Hide search redirect alert if term is digits
Browse files Browse the repository at this point in the history
  • Loading branch information
jlost committed Jun 18, 2020
1 parent cedfb6e commit c173882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/assets/src/components/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function SearchPage(props: PageProps<SearchPageParams>) {
</p>
)
: <AttendingQueueList queues={searchResults} />
const redirectAlert = props.location.search.includes("redirected=true")
const redirectAlert = props.location.search.includes("redirected=true") && !/^\d+$/.exec(term)
&& (
<p className="alert alert-warning">
We didn't find a queue there! It's ok, we made a change that moved some queues around--it's us, not you. To help you find the queue you were looking for, we searched for any queues hosted by {term}. <a href="https://documentation.its.umich.edu/office-hours-links" target="_blank">Learn more about this search.</a>
Expand Down

0 comments on commit c173882

Please sign in to comment.