From 79b2c1578db4bb7835492e45f96a01d53cf7a56b Mon Sep 17 00:00:00 2001 From: Daniel Karaj Date: Thu, 7 Nov 2024 16:32:17 +0000 Subject: [PATCH] SPIKE: display `controller_name` in title Display the controller name in the page title so its eligibility as a form of categorisation for tracking can be evaluated. --- app/views/layouts/design_system.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/layouts/design_system.html.erb b/app/views/layouts/design_system.html.erb index da186e223d6..e2c3e6c11cb 100644 --- a/app/views/layouts/design_system.html.erb +++ b/app/views/layouts/design_system.html.erb @@ -14,7 +14,7 @@ <%= render "govuk_publishing_components/components/layout_for_admin", product_name:, environment: environment, - browser_title: ("Error: " if yield(:error_summary).present?).to_s + sanitized_title do %> + browser_title: controller_name do %>