Skip to content

Commit 5c30817

Browse files
adelowotechknowlogick
authored andcommitted
fix compare button on upstream repo leading to 404 (#5877) (#5914)
1 parent 438848a commit 5c30817

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
@@ -54,8 +54,8 @@
5454
<div class="ui stackable secondary menu mobile--margin-between-items mobile--no-negative-margins">
5555
{{if and .PullRequestCtx.Allowed .IsViewBranch}}
5656
<div class="fitted item">
57-
<a href="{{.BaseRepo.Link}}/compare/{{.BaseRepo.DefaultBranch | EscapePound}}...{{.Repository.Owner.Name}}:{{.BranchName | EscapePound}}">
58-
<button class="ui green tiny compact button"><i class="octicon octicon-git-compare"></i></button>
57+
<a href="{{.BaseRepo.Link}}/compare/{{.BaseRepo.DefaultBranch | EscapePound}}...{{ if .Repository.IsFork }}{{.Repository.Owner.Name}}{{ else }}{{ .SignedUserName }}{{ end }}:{{.BranchName | EscapePound}}">
58+
<button class="ui green tiny compact button"><i class="octicon octicon-git-compare"></i></button>
5959
</a>
6060
</div>
6161
{{end}}

0 commit comments

Comments
 (0)