Skip to content

Commit 16678f5

Browse files
adelowotechknowlogick
authored andcommitted
fix compare button on upstream repo leading to 404 (#5877)
1 parent c62c0b6 commit 16678f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/repo/home.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@
5959
<div class="ui stackable secondary menu mobile--margin-between-items mobile--no-negative-margins">
6060
{{if and .PullRequestCtx.Allowed .IsViewBranch}}
6161
<div class="fitted item">
62-
<a href="{{.BaseRepo.Link}}/compare/{{.BaseRepo.DefaultBranch | EscapePound}}...{{.Repository.Owner.Name}}:{{.BranchName | EscapePound}}">
63-
<button class="ui green tiny compact button"><i class="octicon octicon-git-compare"></i></button>
62+
<a href="{{.BaseRepo.Link}}/compare/{{.BaseRepo.DefaultBranch | EscapePound}}...{{ if .Repository.IsFork }}{{.Repository.Owner.Name}}{{ else }}{{ .SignedUserName }}{{ end }}:{{.BranchName | EscapePound}}">
63+
<button class="ui green tiny compact button"><i class="octicon octicon-git-compare"></i></button>
6464
</a>
6565
</div>
6666
{{end}}

0 commit comments

Comments
 (0)