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 ![non-404-branch-change-commit](https://gitlab.com/sming-gitlab/my-gitlab-spike/uploads/abd67c8813ec0fb0f74d30531d7f9101/non-404-branch-change-commit.mov) | Search term | Branch change | no search term | | ------ | ------ | ------ | |![image](/uploads/3ec26f892910f9d06045e612fcb69e1d/image.png) | Change branch -> | ![image](/uploads/d921f37d5bcd52f30143fb6f434303f0/image.png) | Should we investigate if the search term should be preserved or maybe this is the correct behaviour 🤔
issue