Preserve search term on branch change in commits view
<!--IssueSummary start-->
<details>
<summary>
Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards.
</summary>
- [Work on this issue](https://contributors.gitlab.com/manage-issue?action=work&projectId=278964&issueIid=342185)
- [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=342185)
</details>
<!--IssueSummary end-->
When we have a search term and we change the branch, the search term is not preserved

| Search term | Branch change | no search term |
| ------ | ------ | ------ |
| | Change branch -> |  |
Should we investigate if the search term should be preserved or maybe this is the correct behaviour
🤔
issue