diff options
Diffstat (limited to 'templates/repo/view_file.tmpl')
-rw-r--r-- | templates/repo/view_file.tmpl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index 4d11170bd0..274c7df22e 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -13,11 +13,11 @@ {{end}} {{if not .ReadmeInList}} {{if not .IsCommit}} - <a class="right" href="{{.RepoLink}}/src/{{.CommitId}}/{{.TreeName}}"> + <a class="right" href="{{.RepoLink}}/src/{{.CommitId}}/{{EscapePound .TreeName}}"> <button class="btn btn-medium btn-gray btn-right-radius btn-comb">{{.i18n.Tr "repo.file_permalink"}}</button> </a> {{end}} - <a class="right" href="{{.RepoLink}}/commits/{{EscapePound .BranchName}}/{{.TreeName}}"> + <a class="right" href="{{.RepoLink}}/commits/{{EscapePound .BranchName}}/{{EscapePound .TreeName}}"> <button class="btn btn-medium btn-gray btn-right-radius btn-comb">{{.i18n.Tr "repo.file_history"}}</button> </a> <a class="right" href="{{EscapePound .FileLink}}"> @@ -47,4 +47,4 @@ </table> {{end}} </div> -</div>
\ No newline at end of file +</div> |