UX: The search screen does not show the current branch which can be confusing

Problem to solve

When you come from a branch and use the project search, the URL looks like this:

https://git.example.com/search?utf8=%E2%9C%93&search=newstuff&group_id=&project_id=176&search_code=true&repository_ref=develop

This finds one result in my case, because newstuff is in develop

When you use the project search in general, you get this URL:

https://git.example.com/search?utf8=%E2%9C%93&snippets=&scope=&search=newstuff&project_id=176

This does not lead to results.

This is confusing, because the search result page looks the same, one time showing results, the other time not.

Proposal

Include the current branch / all search parameters visually in the result page's controls on the top.

Assignee Loading
Time tracking Loading