diff --git a/app/components/candidate_interface/application_review_component.html.erb b/app/components/candidate_interface/application_review_component.html.erb index 9d23db75560..fe4c873e915 100644 --- a/app/components/candidate_interface/application_review_component.html.erb +++ b/app/components/candidate_interface/application_review_component.html.erb @@ -31,7 +31,7 @@ <% if show_withdraw? %>
You can <%= govuk_link_to 'withdraw this application', withdrawal_path %> if you no longer wish to be considered for this course.
+You can <%= govuk_link_to 'withdraw this application', path_for_withdrawals %> if you no longer wish to be considered for this course.
<% end %> <% if show_provider_contact_component? %> diff --git a/app/components/candidate_interface/application_review_component.rb b/app/components/candidate_interface/application_review_component.rb index 5db40248a88..c4c170943e3 100644 --- a/app/components/candidate_interface/application_review_component.rb +++ b/app/components/candidate_interface/application_review_component.rb @@ -169,7 +169,7 @@ def provider application_choice.current_provider end - def withdrawal_path + def path_for_withdrawals if FeatureFlag.active?(:new_candidate_withdrawal_reasons) candidate_interface_withdrawal_reasons_level_one_reason_start_path(application_choice) else diff --git a/app/components/candidate_interface/course_choices_summary_card_action_component.html.erb b/app/components/candidate_interface/course_choices_summary_card_action_component.html.erb index 4c8fb7a8490..a9052ee56a3 100644 --- a/app/components/candidate_interface/course_choices_summary_card_action_component.html.erb +++ b/app/components/candidate_interface/course_choices_summary_card_action_component.html.erb @@ -1,6 +1,6 @@ <% if action == :withdraw %>- <%= govuk_link_to 'Withdraw this application', withdrawal_path %> + <%= govuk_link_to 'Withdraw this application', path_for_withdrawals %>
<% elsif action == :respond_to_offer %>diff --git a/app/components/candidate_interface/course_choices_summary_card_action_component.rb b/app/components/candidate_interface/course_choices_summary_card_action_component.rb index 3f1de5458f9..50ffce0d6ab 100644 --- a/app/components/candidate_interface/course_choices_summary_card_action_component.rb +++ b/app/components/candidate_interface/course_choices_summary_card_action_component.rb @@ -7,7 +7,7 @@ def initialize(action:, application_choice:) @application_choice = application_choice end - def withdrawal_path + def path_for_withdrawals if FeatureFlag.active? :new_candidate_withdrawal_reasons candidate_interface_withdrawal_reasons_level_one_reason_start_path(application_choice.id) else