diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 0a980061aa..60d085a3f0 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -5,16 +5,16 @@ <%= csrf_meta_tags %> <%= csp_meta_tag %> <%= canonical_tag %> - <%= tag.meta name: "viewport", content: "width=device-width, initial-scale=1" %> - <%= tag.meta property: "og:image", content: asset_path("govuk-frontend/govuk/assets/images/govuk-opengraph-image.png") %> - <%= tag.meta name: "theme-color", content: "#0b0c0c" %> - <%= tag.meta name: "ROBOTS", content: "NOINDEX, NOFOLLOW" %> - <%= favicon_link_tag "govuk-frontend/govuk/assets/images/favicon.ico" %> - <%= favicon_link_tag "govuk-frontend/govuk/assets/images/govuk-mask-icon.svg", rel: "mask-icon", type: "image/svg", color: "#0b0c0c" %> - <%= favicon_link_tag "govuk-frontend/govuk/assets/images/govuk-apple-touch-icon.png", rel: "apple-touch-icon", type: "image/png" %> - <%= favicon_link_tag "govuk-frontend/govuk/assets/images/govuk-apple-touch-icon-152x152.png", rel: "apple-touch-icon", type: "image/png", size: "152x152" %> - <%= favicon_link_tag "govuk-frontend/govuk/assets/images/govuk-apple-touch-icon-167x167.png", rel: "apple-touch-icon", type: "image/png", size: "167x167" %> - <%= favicon_link_tag "govuk-frontend/govuk/assets/images/govuk-apple-touch-icon-180x180.png", rel: "apple-touch-icon", type: "image/png", size: "180x180" %> + + <%= tag.meta(name: "viewport", content: "width=device-width, initial-scale=1") %> + <%= 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 %> + <%= favicon_link_tag image_path("govuk-icon-180.png"), rel: "apple-touch-icon", type: nil %> + <%= stylesheet_link_tag "accessible-autocomplete/dist/accessible-autocomplete.min" %> <%= stylesheet_link_tag "publish_application" %> <%= javascript_include_tag "publish/application", "data-turbo-track": "reload", defer: true %> diff --git a/app/views/layouts/component_preview.html.erb b/app/views/layouts/component_preview.html.erb index 20f366868b..9eeb0cf735 100644 --- a/app/views/layouts/component_preview.html.erb +++ b/app/views/layouts/component_preview.html.erb @@ -8,12 +8,12 @@ <%= csrf_meta_tags %> <%= csp_meta_tag %> - <%= favicon_link_tag "govuk-frontend/govuk/assets/images/favicon.ico" %> - <%= favicon_link_tag "govuk-frontend/govuk/assets/images/govuk-mask-icon.svg", rel: "mask-icon", type: "image/svg", color: "#0b0c0c" %> - <%= favicon_link_tag "govuk-frontend/govuk/assets/images/govuk-apple-touch-icon.png", rel: "apple-touch-icon", type: "image/png" %> - <%= favicon_link_tag "govuk-frontend/govuk/assets/images/govuk-apple-touch-icon-152x152.png", rel: "apple-touch-icon", type: "image/png", size: "152x152" %> - <%= favicon_link_tag "govuk-frontend/govuk/assets/images/govuk-apple-touch-icon-167x167.png", rel: "apple-touch-icon", type: "image/png", size: "167x167" %> - <%= favicon_link_tag "govuk-frontend/govuk/assets/images/govuk-apple-touch-icon-180x180.png", rel: "apple-touch-icon", type: "image/png", size: "180x180" %> + + <%= 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 %> + <%= favicon_link_tag image_path("govuk-icon-180.png"), rel: "apple-touch-icon", type: nil %> + <%= stylesheet_link_tag "accessible-autocomplete/dist/accessible-autocomplete.min" %> <%= stylesheet_link_tag "find_application" %> <%= stylesheet_link_tag "publish_application" %> diff --git a/app/views/layouts/find_layout.html.erb b/app/views/layouts/find_layout.html.erb index ace9f15bb2..5269bf902d 100644 --- a/app/views/layouts/find_layout.html.erb +++ b/app/views/layouts/find_layout.html.erb @@ -5,15 +5,16 @@ <%= csrf_meta_tags %> <%= csp_meta_tag %> <%= canonical_tag %> - <%= tag.meta name: "viewport", content: "width=device-width, initial-scale=1" %> - <%= tag.meta property: "og:image", content: asset_path("govuk-frontend/govuk/assets/images/govuk-opengraph-image.png") %> - <%= tag.meta name: "theme-color", content: "#0b0c0c" %> - <%= favicon_link_tag "govuk-frontend/govuk/assets/images/favicon.ico" %> - <%= favicon_link_tag "govuk-frontend/govuk/assets/images/govuk-mask-icon.svg", rel: "mask-icon", type: "image/svg", color: "#0b0c0c" %> - <%= favicon_link_tag "govuk-frontend/govuk/assets/images/govuk-apple-touch-icon.png", rel: "apple-touch-icon", type: "image/png" %> - <%= favicon_link_tag "govuk-frontend/govuk/assets/images/govuk-apple-touch-icon-152x152.png", rel: "apple-touch-icon", type: "image/png", size: "152x152" %> - <%= favicon_link_tag "govuk-frontend/govuk/assets/images/govuk-apple-touch-icon-167x167.png", rel: "apple-touch-icon", type: "image/png", size: "167x167" %> - <%= favicon_link_tag "govuk-frontend/govuk/assets/images/govuk-apple-touch-icon-180x180.png", rel: "apple-touch-icon", type: "image/png", size: "180x180" %> + + <%= tag.meta(name: "viewport", content: "width=device-width, initial-scale=1") %> + <%= 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 %> + <%= favicon_link_tag image_path("govuk-icon-180.png"), rel: "apple-touch-icon", type: nil %> + <%= stylesheet_link_tag "find_application" %> <%= javascript_include_tag "find/application", "data-turbo-track": "reload", defer: true %>