From 7ea769228e5ca40cdbb47344904bd0efdccaf658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CA=88=E1=B5=83=E1=B5=A2?= Date: Fri, 27 Sep 2019 19:47:20 -0700 Subject: [PATCH] allow non-relative LOGO_TARGET_PATH (#8307) --- superset/templates/appbuilder/navbar.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/superset/templates/appbuilder/navbar.html b/superset/templates/appbuilder/navbar.html index 29c224112..72eefdfc5 100644 --- a/superset/templates/appbuilder/navbar.html +++ b/superset/templates/appbuilder/navbar.html @@ -21,6 +21,7 @@ {% 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) %} +{% set root_path = logo_target_path if not logo_target_path.startswith('/') else '/superset' + logo_target_path if current_user.username is defined else '#' %}