diff --git a/app/controllers/submit_form_controller.rb b/app/controllers/submit_form_controller.rb index e1257d5b..b7c3b26c 100644 --- a/app/controllers/submit_form_controller.rb +++ b/app/controllers/submit_form_controller.rb @@ -10,9 +10,9 @@ class SubmitFormController < ApplicationController 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 5699ecc2..bb563284 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 679b8bff..4530c31e 100644 --- a/app/views/users/index.html.erb +++ b/app/views/users/index.html.erb @@ -1,4 +1,4 @@ -