From cd9e40d94a3ac79188801fd58b33734af4f27998 Mon Sep 17 00:00:00 2001 From: Keith Lawrence Date: Tue, 17 Dec 2024 16:10:33 +0000 Subject: [PATCH] WIP redirect favicon.ico requests to www.gov.uk/favicon.ico - now that static isn't serving favicon.ico, we need to serve it on assets.publishing.service.gov.uk somehow, this seems the simplest solution. - TODO: tests, redirect to appropriate environment? --- config/routes.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/routes.rb b/config/routes.rb index 5438d31f..e7af1f50 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -8,6 +8,8 @@ Healthcheck::CloudStorage, ) + get "/favicon.ico" => redirect("https://www.gov.uk/favicon.ico") + resources :assets, only: %i[show create update destroy] do member do post :restore