diff --git a/app/views/case_logs/edit.html.erb b/app/views/case_logs/edit.html.erb index 0d5dfc2b8..7b5f868d7 100644 --- a/app/views/case_logs/edit.html.erb +++ b/app/views/case_logs/edit.html.erb @@ -1,6 +1,8 @@ <% content_for :title, "Log #{@case_log.id}" %> -<% breadcrumbs = { "Logs" => "/logs", content_for(:title) => "" } %> -<% content_for :breadcrumbs, govuk_breadcrumbs(breadcrumbs: breadcrumbs) %> +<% content_for :breadcrumbs, govuk_breadcrumbs(breadcrumbs: { + "Logs" => "/logs", + content_for(:title) => "" +}) %> <%= turbo_frame_tag "case_log_form", target: "_top" do %>
diff --git a/app/views/form/check_answers.html.erb b/app/views/form/check_answers.html.erb index f3d1355a5..cc3711b5b 100644 --- a/app/views/form/check_answers.html.erb +++ b/app/views/form/check_answers.html.erb @@ -1,6 +1,9 @@ <% content_for :title, "#{subsection.id.humanize} - Check your answers" %> -<% breadcrumbs = { "Logs" => "/logs", "Log" => "/logs/" + @case_log.id.to_s, subsection.label => "" } %> -<% content_for :breadcrumbs, govuk_breadcrumbs(breadcrumbs: breadcrumbs) %> +<% content_for :breadcrumbs, govuk_breadcrumbs(breadcrumbs: { + "Logs" => "/logs", + "Log #{@case_log.id.to_s}" => "/logs/" + @case_log.id.to_s, + subsection.label => "" +}) %> <%= turbo_frame_tag "case_log_form", target: "_top" do %>