diff --git a/app/views/idv/link_sent/show.html.erb b/app/views/idv/link_sent/show.html.erb
index 98555371610..b4a18d20abc 100644
--- a/app/views/idv/link_sent/show.html.erb
+++ b/app/views/idv/link_sent/show.html.erb
@@ -57,4 +57,4 @@
<%= javascript_packs_tag_once 'doc-capture-polling' %>
<% end %>
-<%= render 'idv/shared/back', action: 'cancel_link_sent', class: 'link-sent-back-link', step_url: :idv_doc_auth_url %>
+<%= render 'idv/shared/back', action: 'cancel_link_sent', class: 'link-sent-back-link', step_url: :idv_doc_auth_step_url %>
diff --git a/spec/features/idv/actions/cancel_link_sent_action_spec.rb b/spec/features/idv/actions/cancel_link_sent_action_spec.rb
index 2cf54a9f177..e90d5e499e2 100644
--- a/spec/features/idv/actions/cancel_link_sent_action_spec.rb
+++ b/spec/features/idv/actions/cancel_link_sent_action_spec.rb
@@ -4,7 +4,11 @@
include IdvStepHelper
include DocAuthHelper
+ let(:new_controller_enabled) { false }
+
before do
+ allow(IdentityConfig.store).to receive(:doc_auth_link_sent_controller_enabled).
+ and_return(new_controller_enabled)
sign_in_and_2fa_user
complete_doc_auth_steps_before_link_sent_step
end
@@ -14,4 +18,15 @@
expect(page).to have_current_path(idv_doc_auth_upload_step)
end
+
+ context 'new SendLink controller is enabled' do
+ let(:new_controller_enabled) { true }
+
+ it 'returns to link sent step', :js do
+ expect(page).to have_current_path(idv_link_sent_path)
+ click_doc_auth_back_link
+
+ expect(page).to have_current_path(idv_doc_auth_upload_step)
+ end
+ end
end