Skip to content

Commit

Permalink
No unidecode
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoichi Imai committed Nov 17, 2012
1 parent 1bf98a3 commit 8f56df2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/gollum/frontend/app.rb
Expand Up @@ -19,7 +19,8 @@ class String
def to_url
return nil if self.nil?
return self if ['_Header', '_Footer', '_Sidebar'].include? self
upstream_to_url
##upstream_to_url
self
end
end

Expand Down Expand Up @@ -200,7 +201,7 @@ def wiki_new

begin
wiki.write_page(name, format, params[:content], commit_message, path)
redirect to("/#{clean_url(::File.join(path,name))}")
redirect to("/#{clean_url(encodeURIComponent(::File.join(path,name)))}")
rescue Gollum::DuplicatePageError => e
@message = "Duplicate page: #{e.message}"
mustache :error
Expand Down

0 comments on commit 8f56df2

Please sign in to comment.