Search box redirects incorrectly when going back in browser on

When searching in this box and clicking on a repository, if you then go back in the browser, it incorrectly redirects you to your personal repository page. The previous search is left in the search box which causes the redirect.

This is in Firefox dev where the bug occurs, does not happen in Chrome.