Searching for "Twitter" returns broken results page, searching for "Bing" returns "cheese"

RESOLVED FIXED in M2

Status

RESOLVED FIXED
7 years ago
7 years ago

People

(Reporter: gbrander, Assigned: gbrander)

Tracking

unspecified
x86
Mac OS X

Details

(Assignee)

Description

7 years ago
Cue Twilight Zone music...

What happens:
1. Search for "Twitter"
2. Broken search results appear.
3. Clicking on Bing tab shows "Cheese" as results

What happens:
1. Search for "Bing"
2. Search results are for "Cheese"

What I expect to happen: not that.

The API results seem to be ok. For example, look at the results for "Twitter": /search/bing?q=Twitter
Component: Front-end → Back-end
QA Contact: frontend → backend

Updated

7 years ago
Assignee: nobody → gbrander
(Assignee)

Comment 1

7 years ago
We get "cheese" back from the search API when no search query is provided (thx st3fan).

We tease out the search provider on the front end by string searching for provider names in the :query param passed from the router.

If you type twitter (a provider), you'll get a false positive for the provider, and the search API will be hit with '', so you get back cheese.

Comment 2

7 years ago
this is fixed now
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.