summaryrefslogtreecommitdiff
path: root/app/models/wiki_page.rb
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-03-21 18:04:29 -0700
committerStan Hu <stanhu@gmail.com>2015-03-21 18:33:51 -0700
commit59d5c779758a696233d2f2adcf145c0a93a8fb2f (patch)
tree5410c902bf776147ec55febe8014179b0250740e /app/models/wiki_page.rb
parentaadd38dbb9b8fbae91be4b509dc18295ff06c8ee (diff)
downloadgitlab-ce-59d5c779758a696233d2f2adcf145c0a93a8fb2f.tar.gz
Fix dots in Wiki slug causing errors
Closes #1263, #431
Diffstat (limited to 'app/models/wiki_page.rb')
-rw-r--r--app/models/wiki_page.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/wiki_page.rb b/app/models/wiki_page.rb
index 32981a0e664..e9413c34bae 100644
--- a/app/models/wiki_page.rb
+++ b/app/models/wiki_page.rb
@@ -179,7 +179,8 @@ class WikiPage
if valid? && project_wiki.send(method, *args)
page_details = if method == :update_page
- @page.path
+ # Use url_path instead of path to omit format extension
+ @page.url_path
else
title
end