Skip to content

Commit 5e818f1

Browse files
committed
Fix "View this file on GitHub" links to work even when the default branch is not master
1 parent 43b28a3 commit 5e818f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

onlinejudge_verify_resources/_includes/document_header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ <h1>{{ page.data._verificationStatusIcon }} {{ page.title }}
33
</h1>
44

55
<ul>
6-
<li><a href="{{ site.github.repository_url }}/blob/master/{{ page.data.path }}">View this file on GitHub</a></li>
6+
<li><a href="{{ site.github.repository_url }}/blob/{{ site.github.default_branch }}/{{ page.data.path }}">View this file on GitHub</a></li>
77
<li>Last update: {{ page.data.timestamp }}</li>
88
{% if page.data.attributes.PROBLEM %}
99
<li>Problem: <a href="{{ page.data.attributes.PROBLEM }}">{{ page.data.attributes.PROBLEM }}</a></li>

0 commit comments

Comments
 (0)