summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMatthias Loibl <mail@matthiasloibl.com>2016-11-08 18:28:00 +0100
committerGitHub <noreply@github.com>2016-11-08 18:27:59 +0100
commit45c4539c6168aa248e425033731ab7a9a21c5958 (patch)
tree7235c6a9dc9d75a092d7d03a28d6ad790e47136b /templates
parentf6d53ecbc1a1f1475d2ed6753176db43278dfd7f (diff)
parent01c5233b53d931996844716dfe80511fd1f9abb5 (diff)
downloadgitea-45c4539c6168aa248e425033731ab7a9a21c5958.tar.gz
gitea-45c4539c6168aa248e425033731ab7a9a21c5958.zip
Merge pull request #17 from LefsFlarey/issue/3666
Fixed 404 caused by unexpected question mark
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/wiki/view.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/wiki/view.tmpl b/templates/repo/wiki/view.tmpl
index dc4938ab0c..b8b0d2702a 100644
--- a/templates/repo/wiki/view.tmpl
+++ b/templates/repo/wiki/view.tmpl
@@ -54,9 +54,9 @@
{{.title}}
{{if and .IsRepositoryWriter (not .Repository.IsMirror)}}
<div class="ui right">
- <a class="ui small button" href="{{.RepoLink}}/wiki/{{.PageURL}}/_edit">{{.i18n.Tr "repo.wiki.edit_page_button"}}</a>
+ <a class="ui small button" href="{{.RepoLink}}/wiki/{{EscapePound .PageURL}}/_edit">{{.i18n.Tr "repo.wiki.edit_page_button"}}</a>
<a class="ui green small button" href="{{.RepoLink}}/wiki/_new">{{.i18n.Tr "repo.wiki.new_page_button"}}</a>
- <a class="ui red small button delete-button" href="" data-url="{{.RepoLink}}/wiki/{{.PageURL}}/delete" data-id="{{.PageURL}}">{{.i18n.Tr "repo.wiki.delete_page_button"}}</a>
+ <a class="ui red small button delete-button" href="" data-url="{{.RepoLink}}/wiki/{{EscapePound .PageURL}}/delete" data-id="{{EscapePound .PageURL}}">{{.i18n.Tr "repo.wiki.delete_page_button"}}</a>
</div>
{{end}}
<div class="ui sub header">