Skip to content

Commit c6daee6

Browse files
SagePtrlafriks
authored andcommitted
Fix missing AppSubUrl in some templates (#5020)
1 parent 94cd7bb commit c6daee6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/explore/repo_list.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
{{if .Topics }}
2121
<div>
2222
{{range .Topics}}
23-
{{if ne . "" }}<a href="/explore/repos?q={{.}}&topic=1"><div class="ui green basic label topic">{{.}}</div></a>{{end}}
23+
{{if ne . "" }}<a href="{{AppSubUrl}}/explore/repos?q={{.}}&topic=1"><div class="ui green basic label topic">{{.}}</div></a>{{end}}
2424
{{end}}
2525
</div>
2626
{{end}}

templates/repo/home.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
{{end}}
2525
</div>
2626
<div class="ui repo-topic" id="repo-topic">
27-
{{range .Topics}}<a class="ui green basic label topic" style="cursor:pointer;" href="/explore/repos?q={{.Name}}&topic=1">{{.Name}}</a>{{end}}
27+
{{range .Topics}}<a class="ui green basic label topic" style="cursor:pointer;" href="{{AppSubUrl}}/explore/repos?q={{.Name}}&topic=1">{{.Name}}</a>{{end}}
2828
{{if .IsRepositoryAdmin}}<a id="manage_topic" style="cursor:pointer;margin-left:10px;">{{.i18n.Tr "repo.topic.manage_topics"}}</a>{{end}}
2929
</div>
3030
{{if .IsRepositoryAdmin}}

0 commit comments

Comments
 (0)