Serve default favicon for apps that don't provide one

Based on: https://salsa.debian.org/freedombox-team/plinth/merge_requests/1306

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa 2019-01-26 20:23:16 -08:00
parent 529c281734
commit dfd46281c5
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2
2 changed files with 10 additions and 0 deletions

View File

@ -11,3 +11,13 @@ Header set Strict-Transport-Security "max-age=31536000; includeSubDomains" env=H
RedirectMatch "^/$" "/plinth"
RedirectMatch "^/freedombox" "/plinth"
##
## Serve FreedomBox icon as /favicon.ico for apps that don't present their own
## icon using <link rel=''>.
##
<Location ~ ^/favicon\.ico$>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule /favicon\.ico$ "/plinth/static/theme/img/favicon.ico" [PT]
</IfModule>
</Location>

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB