From 662acd016e02d25f93027a4d022823ae5897084c Mon Sep 17 00:00:00 2001 From: Phil Lee Date: Mon, 9 Sep 2024 11:56:37 +0100 Subject: [PATCH] fix back link --- app/views/admin/tasks/payroll_gender.html.erb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/admin/tasks/payroll_gender.html.erb b/app/views/admin/tasks/payroll_gender.html.erb index f6dd4722d8..e98c1343b4 100644 --- a/app/views/admin/tasks/payroll_gender.html.erb +++ b/app/views/admin/tasks/payroll_gender.html.erb @@ -1,6 +1,7 @@ <% content_for(:page_title) { page_title("Claim #{@claim.reference} payroll gender check for #{@claim.policy.short_name}") } %> - -<%= link_to "Back", admin_claim_tasks_path(claim_id: @claim.id), class: "govuk-back-link" %> +<% content_for :back_link do %> + <%= link_to "Back", admin_claim_tasks_path(claim_id: @claim.id), class: "govuk-back-link" %> +<% end %> <%= render "shared/error_summary", instance: @claim, errored_field_id_overrides: { "payroll_gender": "claim_payroll_gender_female" } if @claim.errors.any? %>