From 998358ada8f81805540834552dd8c301a4894933 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Garcia Ballester Date: Wed, 25 Jul 2012 12:27:00 +0200 Subject: [PATCH 1/2] Fix relative url --- lib/gollum/frontend/app.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/gollum/frontend/app.rb b/lib/gollum/frontend/app.rb index 5b6e25e6..9e72c5ae 100644 --- a/lib/gollum/frontend/app.rb +++ b/lib/gollum/frontend/app.rb @@ -121,7 +121,7 @@ module Precious mustache :edit end else - redirect "/create/#{CGI.escape(@name)}" + redirect to("/create/#{CGI.escape(@name)}") end end @@ -154,7 +154,7 @@ module Precious @page = wiki.page(@name) wiki.delete_page(@page, { :message => "Destroyed #{@name} (#{@page.format})" }) - redirect '/' + redirect to('/') end get '/create/*' do @@ -165,7 +165,7 @@ module Precious page = wiki.page(@name) if page - redirect "/#{page.escaped_url_path}" + redirect to("/#{page.escaped_url_path}") else mustache :create end @@ -346,7 +346,7 @@ module Precious 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 From bd36cb59b1e0e4a65ff0fe67d5b16b1718c8c6c4 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Garcia Ballester Date: Wed, 25 Jul 2012 12:33:48 +0200 Subject: [PATCH 2/2] Fix relative url --- lib/gollum/frontend/templates/page.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gollum/frontend/templates/page.mustache b/lib/gollum/frontend/templates/page.mustache index e62021ee..9aa18436 100644 --- a/lib/gollum/frontend/templates/page.mustache +++ b/lib/gollum/frontend/templates/page.mustache @@ -60,7 +60,7 @@