Search results display - switch branches links are bad

Migrated issue

Reported by: jhodgdon

tim.plunkett brought this to my attention in IRC...

If you search on api.drupal.org and either end up with 0 or multiple search results (so that what you see is a search results page, rather than being jumped to the single result), the links across the top are messed up.

a) Searching is (currently) across projects within the same branch, so the branch_name should be shown and not the branch title.

b) The php branch should not be shown as an option.

See screen shot.

Pre-migration files

Edited by drupalbot