Skip to content

Commit

Permalink
WIP redirect favicon.ico requests to www.gov.uk/favicon.ico
Browse files Browse the repository at this point in the history
- 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?
  • Loading branch information
KludgeKML committed Dec 17, 2024
1 parent ffc5452 commit cd9e40d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd9e40d

Please sign in to comment.