diff options
author | wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf <61180606+wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf@users.noreply.github.com> | 2020-11-10 22:27:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-10 23:27:11 +0200 |
commit | 3400928f7ac1fe8326a69a049a5c0b2dc3a3675d (patch) | |
tree | 708a2d5af4acebba3d692a4054007e5b5b6bb83f | |
parent | da4f2c5979d0254d54614b6b56fdb33ed052ee2f (diff) | |
download | gitea-3400928f7ac1fe8326a69a049a5c0b2dc3a3675d.tar.gz gitea-3400928f7ac1fe8326a69a049a5c0b2dc3a3675d.zip |
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 <a_mirre@utb.cz>
-rw-r--r-- | templates/repo/graph/commits.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/graph/commits.tmpl b/templates/repo/graph/commits.tmpl index 108aa0aa04..d89bcf1cc7 100644 --- a/templates/repo/graph/commits.tmpl +++ b/templates/repo/graph/commits.tmpl @@ -35,12 +35,12 @@ {{if eq $refGroup "pull"}} {{if $.HidePRRefs}} {{if (containGeneric $.SelectedBranches .Name) }} - <a class="ui labelled icon button basic tiny" href="{{$.RepoLink}}/pulls/{{.ShortName|PathEscape}}"> + <a class="ui labelled icon button basic tiny" href="{{$.RepoLink}}/issues/{{.ShortName|PathEscape}}"> {{svg "octicon-git-pull-request" 16 "mr-2"}}#{{.ShortName}} </a> {{end}} {{else}} - <a class="ui labelled icon button basic tiny" href="{{$.RepoLink}}/pulls/{{.ShortName|PathEscape}}"> + <a class="ui labelled icon button basic tiny" href="{{$.RepoLink}}/issues/{{.ShortName|PathEscape}}"> {{svg "octicon-git-pull-request" 16 "mr-2"}}#{{.ShortName}} </a> {{end}} |