Skip to content

Commit

Permalink
fix: set correct favicon from config for login and FAB list views (ap…
Browse files Browse the repository at this point in the history
…ache#21498)

(cherry picked from commit b29e7e7)
  • Loading branch information
mayurnewase authored and Fahrenheit35 committed Nov 11, 2022
1 parent 3bbdabc commit b3219ef
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion superset/templates/superset/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,15 @@

{% block head_css %}
{{ super() }}
<link rel="icon" type="image/png" href="{{ assets_prefix }}/static/assets/images/favicon.png">
{% set favicons = appbuilder.app.config['FAVICONS'] %}
{% for favicon in favicons %}
<link
rel="{{favicon.rel if favicon.rel else "icon"}}"
type="{{favicon.type if favicon.type else "image/png"}}"
{% if favicon.sizes %}sizes={{favicon.sizes}}{% endif %}
href="{{ "" if favicon.href.startswith("http") else assets_prefix }}{{favicon.href}}"
>
{% endfor %}
{{ css_bundle("theme") }}
{% endblock %}

Expand Down

0 comments on commit b3219ef

Please sign in to comment.