From 96ef7287fe4b2a8ea489008df3295dcb53ac7d63 Mon Sep 17 00:00:00 2001 From: Daniel Dye Date: Tue, 17 Dec 2024 10:52:23 +0000 Subject: [PATCH] Add utf-8 explicit charset meta tag to layouts --- app/views/layouts/application.html.erb | 4 ++++ app/views/layouts/find_layout.html.erb | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 59be724184..819eefe1c3 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -1,7 +1,10 @@ + + <%= yield :page_title %> - Publish teacher training courses - GOV.UK + <%= csrf_meta_tags %> <%= csp_meta_tag %> @@ -14,6 +17,7 @@ <%= tag.meta(property: "og:image", content: image_path("govuk-opengraph-image.png")) %> <%= tag.meta(name: "theme-color", content: "#0b0c0c") %> <%= tag.meta(name: "format-detection", content: "telephone=no") %> + <%= favicon_link_tag image_path("favicon.ico"), type: nil, sizes: "48x48" %> <%= favicon_link_tag image_path("favicon.svg"), type: "image/svg+xml", sizes: "any" %> <%= favicon_link_tag image_path("govuk-icon-mask.svg"), rel: "mask-icon", color: "#0b0c0c", type: nil %> diff --git a/app/views/layouts/find_layout.html.erb b/app/views/layouts/find_layout.html.erb index f70ba8675c..655a500f36 100644 --- a/app/views/layouts/find_layout.html.erb +++ b/app/views/layouts/find_layout.html.erb @@ -1,7 +1,10 @@ + + <%= yield :page_title %> - <%= t("service_name.find") %> - GOV.UK + <%= csrf_meta_tags %> <%= csp_meta_tag %> @@ -14,6 +17,7 @@ <%= tag.meta(property: "og:image", content: image_path("govuk-opengraph-image.png")) %> <%= tag.meta(name: "theme-color", content: "#0b0c0c") %> <%= tag.meta(name: "format-detection", content: "telephone=no") %> + <%= favicon_link_tag image_path("favicon.ico"), type: nil, sizes: "48x48" %> <%= favicon_link_tag image_path("favicon.svg"), type: "image/svg+xml", sizes: "any" %> <%= favicon_link_tag image_path("govuk-icon-mask.svg"), rel: "mask-icon", color: "#0b0c0c", type: nil %>