Send path when renaming pages.

Fix nil error on editing a non-existent page.
Use baseURL on delete.
This commit is contained in:
bootstraponline
2012-07-31 21:56:07 -06:00
parent f471c80ac0
commit d28f454c6e
2 changed files with 14 additions and 11 deletions
+1 -1
View File
@@ -143,7 +143,7 @@ module Precious
page = wiki.page(rename) if rename
redirect to("/#{page.escaped_url_path}")
redirect to("/#{page.escaped_url_path}") unless page.nil?
end
get '/delete/*' do