From 20a341411280eb8cedab3d93d11ee7db2ddf1c92 Mon Sep 17 00:00:00 2001 From: Thomas Leese Date: Wed, 21 Feb 2024 09:13:31 +0100 Subject: [PATCH] Don't track history for documents When visiting the documents we don't want to track these in the history stack as they're opened in new tabs, and therefore once closed shouldn't have affected the history. --- app/controllers/teacher_interface/uploads_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/teacher_interface/uploads_controller.rb b/app/controllers/teacher_interface/uploads_controller.rb index a206fdcded..9a2ca086ff 100644 --- a/app/controllers/teacher_interface/uploads_controller.rb +++ b/app/controllers/teacher_interface/uploads_controller.rb @@ -12,6 +12,7 @@ class UploadsController < BaseController skip_before_action :authenticate_teacher! before_action -> { authenticate_or_redirect(:teacher) } + skip_before_action :track_history, only: :show before_action :redirect_unless_draft_or_additional_information before_action :load_application_form before_action :load_document