app/controllers/spotlight/pages_controller.rb in blacklight-spotlight-0.23.0 vs app/controllers/spotlight/pages_controller.rb in blacklight-spotlight-0.24.0
- old
+ new
@@ -80,10 +80,10 @@
notice = if @exhibit.update update_all_page_params
t(:'helpers.submit.page.batch_updated', model: human_name)
else
t(:'helpers.submit.page.batch_error', model: human_name)
end
- redirect_to :back, notice: notice
+ redirect_back fallback_location: spotlight.exhibit_dashboard_path(@exhibit), notice: notice
end
protected
def _prefixes