Shows branch name in non-blob and non-wiki_blob scopes

Summary

https://gitlab.com/search?group_id=9970&project_id=278964&repository_ref=0a68660b-mr-iid&scope=issues&search=test Combination of url params in above link reproduces the issue. Shows a wrong search indicator message.

Steps to reproduce

https://gitlab.com/search?group_id=9970&project_id=278964&repository_ref=0a68660b-mr-iid&scope=issues&search=test

What is the current bug behavior?

above link will produce search page search type indicator that is out of bounds 'Advanced search is disbled since blablabla is not the default branch. Learn more.'

What is the expected correct behavior?

'Advanced search is enabled'

Relevant logs and/or screenshots

image

Possible fixes