[Frontend] Fixed bug that gave a bad redirect on page edit.
This commit is contained in:
@@ -57,7 +57,7 @@ module Precious
|
||||
post '/edit/*' do
|
||||
wiki = Gollum::Wiki.new(settings.gollum_path, settings.wiki_options)
|
||||
page = wiki.page(params[:splat].first)
|
||||
name = params[:rename]
|
||||
name = params[:rename] || params[:page]
|
||||
committer = Gollum::Committer.new(wiki, commit_message)
|
||||
commit = {:committer => committer}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user