diff --git a/superset/config.py b/superset/config.py index 31bede6eb..5e46c5f4b 100644 --- a/superset/config.py +++ b/superset/config.py @@ -112,6 +112,10 @@ APP_NAME = 'Superset' APP_ICON = '/static/assets/images/superset-logo@2x.png' APP_ICON_WIDTH = 126 +# Uncomment to specify where clicking the logo would take the user +# e.g. setting it to '/welcome' would take the user to '/superset/welcome' +LOGO_TARGET_PATH = None + # Druid query timezone # tz.tzutc() : Using utc timezone # tz.tzlocal() : Using local timezone diff --git a/superset/templates/appbuilder/navbar.html b/superset/templates/appbuilder/navbar.html index 88f491999..b5cfc642c 100644 --- a/superset/templates/appbuilder/navbar.html +++ b/superset/templates/appbuilder/navbar.html @@ -20,6 +20,7 @@ {% set languages = appbuilder.languages %} {% set WARNING_MSG = appbuilder.app.config.get('WARNING_MSG') %} {% set app_icon_width = appbuilder.app.config.get('APP_ICON_WIDTH', 126) %} +{% set logo_target_path = appbuilder.app.config.get('LOGO_TARGET_PATH') or '/profile/{}/'.format(current_user.username) %}