Skip to content

Commit

Permalink
Merge a1cacdf into 13048b1
Browse files Browse the repository at this point in the history
  • Loading branch information
victoryspirit committed Nov 14, 2018
2 parents 13048b1 + a1cacdf commit a1482f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/lib/refinery/crud.rb
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def create_or_update_successful
if request.xhr?
render :partial => '/refinery/message'
else
redirect_to :back
redirect_back(fallback_location: { action: 'edit' })
end
else
redirect_back_or_default redirect_url
Expand Down
2 changes: 1 addition & 1 deletion images/app/controllers/refinery/admin/images_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def update
if request.xhr?
render partial: '/refinery/message'
else
redirect_to :back
redirect_back(fallback_location: { action: 'edit' })
end
else
redirect_back_or_default refinery.admin_images_path
Expand Down
2 changes: 1 addition & 1 deletion pages/app/controllers/refinery/admin/pages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def update
render partial: 'save_and_continue_callback',
locals: save_and_continue_locals(@page)
else
redirect_to :back
redirect_back(fallback_location: { action: 'edit' })
end
else
redirect_back_or_default(refinery.admin_pages_path)
Expand Down

0 comments on commit a1482f7

Please sign in to comment.