diff --git a/app/controllers/records_controller.rb b/app/controllers/records_controller.rb index 87cf37d99..806a5403d 100644 --- a/app/controllers/records_controller.rb +++ b/app/controllers/records_controller.rb @@ -88,7 +88,7 @@ def download_mpl def highlighted_results ir = IndividualResult.find(params[:calculation_result_id]) ir.recalculate_with_highlighting - redirect_to record_path(id: params[:id]), status: :see_other + redirect_back(fallback_location: record_path(id: params[:id])) end private