Skip to content

Commit 3400928

Browse files
fix: issue tracker link redirection (#13504)
kudos to @zeripath * in case there is a remote issue tracker configured, the git graph view PR and issue links now correctly point to the issue tracker location, whereas if literally pointing at 'pulls', you could have ended up back at the local instance after clicking the link (which, obviously haven't had the pull/issue) Signed-off-by: wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf <[email protected]>
1 parent da4f2c5 commit 3400928

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/repo/graph/commits.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@
3535
{{if eq $refGroup "pull"}}
3636
{{if $.HidePRRefs}}
3737
{{if (containGeneric $.SelectedBranches .Name) }}
38-
<a class="ui labelled icon button basic tiny" href="{{$.RepoLink}}/pulls/{{.ShortName|PathEscape}}">
38+
<a class="ui labelled icon button basic tiny" href="{{$.RepoLink}}/issues/{{.ShortName|PathEscape}}">
3939
{{svg "octicon-git-pull-request" 16 "mr-2"}}#{{.ShortName}}
4040
</a>
4141
{{end}}
4242
{{else}}
43-
<a class="ui labelled icon button basic tiny" href="{{$.RepoLink}}/pulls/{{.ShortName|PathEscape}}">
43+
<a class="ui labelled icon button basic tiny" href="{{$.RepoLink}}/issues/{{.ShortName|PathEscape}}">
4444
{{svg "octicon-git-pull-request" 16 "mr-2"}}#{{.ShortName}}
4545
</a>
4646
{{end}}

0 commit comments

Comments
 (0)