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
  • Loading branch information
mayurnewase authored Sep 19, 2022
1 parent fdb4702 commit b29e7e7
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 b29e7e7

Please sign in to comment.