Skip to content

Commit a6b7c36

Browse files
authored
fix go to file link for mirror repository (#19983)
the `BaseRepo` not always exit, should use `Repository`. Signed-off-by: a1012112796 <[email protected]>
1 parent e399f0f commit a6b7c36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/repo/home.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
</div>
7575
{{end}}
7676
<div class="fitted item mx-0">
77-
<a href="{{.BaseRepo.Link}}/find/{{.BranchNameSubURL}}" class="ui compact basic button">
77+
<a href="{{.Repository.Link}}/find/{{.BranchNameSubURL}}" class="ui compact basic button">
7878
{{.i18n.Tr "repo.find_file.go_to_file"}}
7979
</a>
8080
</div>

0 commit comments

Comments
 (0)