When I'm viewing the history of a file, and change branch, Gitlab is redirected to the branch commits.
The right one would be to show the history of the file, in the selected branch