Relative links in README should point to default branch
On the project home page, GitLab shows the content of the README.*
file present in the default branch. When a relative link is present the README file, it should point to the file in the default branch which is not always master. GitLab 8.0.1 makes relative links point to the file in master.
Steps to replicate:
- create a project with two branches, for example
master
anddevelop
. - set
develop
as the default branch - add a README to the project with a relative link
- the generated
<a></a>
tag points to the file in master, and not in develop.
This can be problematic because the file may not even exist in the master branch, resulting in a 404