Skip to content
This repository has been archived by the owner on Apr 19, 2019. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix relative url
  • Loading branch information
giga committed Jul 25, 2012
1 parent 75a00e8 commit 998358a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/gollum/frontend/app.rb
Expand Up @@ -121,7 +121,7 @@ def supported_useragent?(user_agent)
mustache :edit
end
else
redirect "/create/#{CGI.escape(@name)}"
redirect to("/create/#{CGI.escape(@name)}")
end
end

Expand Down Expand Up @@ -154,7 +154,7 @@ def supported_useragent?(user_agent)
@page = wiki.page(@name)
wiki.delete_page(@page, { :message => "Destroyed #{@name} (#{@page.format})" })

redirect '/'
redirect to('/')
end

get '/create/*' do
Expand All @@ -165,7 +165,7 @@ def supported_useragent?(user_agent)

page = wiki.page(@name)
if page
redirect "/#{page.escaped_url_path}"
redirect to("/#{page.escaped_url_path}")
else
mustache :create
end
Expand Down Expand Up @@ -346,7 +346,7 @@ def show_page_or_file(fullpath)
file.raw_data
else
page_path = [path, name].compact.join('/')
redirect "/create/#{CGI.escape(page_path).gsub('%2F','/')}"
redirect to("/create/#{CGI.escape(page_path).gsub('%2F','/')}")
end
end

Expand Down

0 comments on commit 998358a

Please sign in to comment.