diff options
author | Stan Hu <stanhu@gmail.com> | 2015-03-22 04:04:29 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-03-22 04:33:51 +0300 |
commit | 59d5c779758a696233d2f2adcf145c0a93a8fb2f (patch) | |
tree | 5410c902bf776147ec55febe8014179b0250740e /app/models/wiki_page.rb | |
parent | aadd38dbb9b8fbae91be4b509dc18295ff06c8ee (diff) |
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.rb | 3 |
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 |