Skip to content

Commit

Permalink
Don't track history for documents
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
thomasleese committed Feb 21, 2024
1 parent 64ba64b commit 20a3414
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/teacher_interface/uploads_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 20a3414

Please sign in to comment.