Send path when renaming pages.
Fix nil error on editing a non-existent page. Use baseURL on delete.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user