Readme.md link incorrect in repository view when not on master branch
Summary
When viewing the repository on a non-master branch, the Readme.md link above the displayed "Readme.md" at the bottom of the folder links to /[repo]/blob/master/Readme.md when it should go to /[repo]/blob/[branch-name]/Readme.md.
The displayed readme is the correct version, but the link above it is incorrect. The actual file link in the file tree is fine, just the link in the title pane of the readme output below the folder tree is linked incorrectly.
This happens both on my install and on the public GitLab.com server.
Steps to reproduce
- Create a new branch.
- Modify the Readme.md file on the new branch
- View the tree of the new branch at [Namespace]/[Repo]/tree/[Your-Branch]
- Click the words "README.md" in the title box of the readme display below the folder tree.
- Observe you have been taken to the readme of the master branch, not the branch you were on.
Expected behavior
Link should go to the file on the new branch, not the master branch.
Actual behavior
Link goes to the Readme of the master branch
Relevant logs and/or screenshots
Output of checks
Results of GitLab application Check
This happens on GitLab.com as well as my local install.