Skip to content

Commit 6c2b380

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

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)