Skip to content

Relative links in project README should point to default branch, not master

Alec requested to merge (removed):relative_links_default_branch into master

Relative links in the README shown on a project's main page currently always point to the "master" branch. This is a particularly obvious problem for projects that have no "master" branch, since the link points to a non-existent file.

This patch changes the relative links to instead point to the default branch.

Resolves issue #2707 as well as the incorrectly closed issue #1134 and issue #1852 (closed in favor of 2707).

Merge request reports