app/controllers/spotlight/pages_controller.rb in blacklight-spotlight-3.0.0.alpha.9 vs app/controllers/spotlight/pages_controller.rb in blacklight-spotlight-3.0.0.alpha.10

- old
+ new

@@ -68,10 +68,10 @@ # PATCH/PUT /pages/1 def update @page.lock&.delete if @page.update(page_params.merge(last_edited_by: current_user)) - redirect_to [spotlight, @page.exhibit, @page], flash: { html_safe: true }, notice: undo_notice(:updated) + redirect_to [spotlight, @page.exhibit, @page, format: params.permit(:format)], flash: { html_safe: true }, notice: undo_notice(:updated) else render action: 'edit' end end