diff --git a/app/controllers/submit_form_controller.rb b/app/controllers/submit_form_controller.rb index e1257d5b9..b7c3b26c8 100644 --- a/app/controllers/submit_form_controller.rb +++ b/app/controllers/submit_form_controller.rb @@ -10,9 +10,9 @@ def show Submitter.preload(submission: { template: { documents_attachments: { preview_images_attachments: :blob } } }) .find_by!(slug: params[:slug]) - cookies.signed[:submitter_sid] = @submitter.signed_id + return redirect_to submit_form_completed_path(@submitter.slug) if @submitter.completed_at? - redirect_to submit_form_completed_path(@submitter.slug) if @submitter.completed_at? + cookies[:submitter_sid] = @submitter.signed_id end def update diff --git a/app/views/shared/_posthog.html.erb b/app/views/shared/_posthog.html.erb index 5699ecc27..bb563284c 100644 --- a/app/views/shared/_posthog.html.erb +++ b/app/views/shared/_posthog.html.erb @@ -1,4 +1,4 @@ diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb index 679b8bff6..4530c31e0 100644 --- a/app/views/users/index.html.erb +++ b/app/views/users/index.html.erb @@ -1,4 +1,4 @@ -