]> source.dussan.org Git - gitea.git/commitdiff
Fix broken link to branch from issue list (#9003)
authorVedran <vedran.mikov@protonmail.com>
Fri, 15 Nov 2019 11:38:54 +0000 (12:38 +0100)
committerzeripath <art27@cantab.net>
Fri, 15 Nov 2019 11:38:54 +0000 (11:38 +0000)
* 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

index b4c2d88bfde400fc5e2f20e03b74b1b828b3e007..41f90b1c134cfd0fee8b6a669c85117e95849ea9 100644 (file)
                                                        </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}}