From 97dc314652422d392b26e7ea1ef3991903c6f22c Mon Sep 17 00:00:00 2001 From: Vedran <vedran.mikov@protonmail.com> Date: Fri, 15 Nov 2019 12:38:54 +0100 Subject: [PATCH] Fix broken link to branch from issue list (#9003) * Fix broken link to branch from issue list * Update templates/repo/issue/list.tmpl Co-Authored-By: mrsdizzie <info@mrsdizzie.com> * apply @mrsdizzie's review --- templates/repo/issue/list.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/issue/list.tmpl b/templates/repo/issue/list.tmpl index b4c2d88bfd..41f90b1c13 100644 --- a/templates/repo/issue/list.tmpl +++ b/templates/repo/issue/list.tmpl @@ -246,7 +246,7 @@ </a> {{end}} {{if .Ref}} - <a class="ref" href="{{$.RepoLink}}/src/branch/{{.Ref}}"> + <a class="ref" href="{{$.RepoLink}}/src/branch/{{.Ref | PathEscapeSegments}}"> <span class="octicon octicon-git-branch"></span> {{.Ref}} </a> {{end}}