Skip to content

Commit e9747de

Browse files
justusbunsitechknowlogickzeripath
authored
Fix dependency link rendering in PR sidebar (#16754)
Signed-off-by: Steven Kriegler <[email protected]> Co-authored-by: techknowlogick <[email protected]> Co-authored-by: zeripath <[email protected]>
1 parent 3ecc4a1 commit e9747de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/repo/issue/view_content/sidebar.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@
490490
{{range .BlockedByDependencies}}
491491
<div class="item dependency{{if .Issue.IsClosed}} is-closed{{end}} df ac sb">
492492
<div class="item-left df jc fc f1">
493-
<a class="title" href="{{.Repository.Link}}/issues/{{.Issue.Index}}">
493+
<a class="title" href="{{.Repository.Link}}/{{if .Issue.IsPull}}pulls{{else}}issues{{end}}/{{.Issue.Index}}">
494494
#{{.Issue.Index}} {{.Issue.Title | RenderEmoji}}
495495
</a>
496496
<div class="text small">

0 commit comments

Comments
 (0)