Redirect favicon.(png|ico) to actual favicon asset or upload

This commit is contained in:
Douwe Maan 2018-06-18 11:31:37 +02:00
parent 99fdbe4c23
commit 2a402a3e50
No known key found for this signature in database
GPG Key ID: 5976703F65143D36
4 changed files with 8 additions and 0 deletions

View File

@ -11,6 +11,12 @@ Rails.application.routes.draw do
post :toggle_award_emoji, on: :member
end
favicon_redirect = redirect do |_params, _request|
ActionController::Base.helpers.asset_url(Gitlab::Favicon.main)
end
get 'favicon.png', to: favicon_redirect
get 'favicon.ico', to: favicon_redirect
draw :sherlock
draw :development
draw :ci

View File

@ -58,6 +58,7 @@ Currently the following names are reserved as top level groups:
- dashboard
- deploy.html
- explore
- favicon.ico
- favicon.png
- groups
- header_logo_dark.png

View File

@ -30,6 +30,7 @@ module Gitlab
dashboard
deploy.html
explore
favicon.ico
favicon.png
files
groups

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB