You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by kr...@apache.org on 2019/03/27 20:49:40 UTC

[incubator-superset] branch master updated: fix: Superset logo link when logged out (#7118)

This is an automated email from the ASF dual-hosted git repository.

kristw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new cd54a56  fix: Superset logo link when logged out (#7118)
cd54a56 is described below

commit cd54a567dd421481126b7939a2c1f3772d3f3b50
Author: Enrico Berti <he...@enricoberti.com>
AuthorDate: Wed Mar 27 21:49:34 2019 +0100

    fix: Superset logo link when logged out (#7118)
    
    Closes #7107
---
 superset/templates/appbuilder/navbar.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/templates/appbuilder/navbar.html b/superset/templates/appbuilder/navbar.html
index b5cfc64..29c2241 100644
--- a/superset/templates/appbuilder/navbar.html
+++ b/superset/templates/appbuilder/navbar.html
@@ -30,7 +30,7 @@
         <span class="icon-bar"></span>
         <span class="icon-bar"></span>
       </button>
-      <a class="navbar-brand" href="/superset{{ logo_target_path }}">
+      <a class="navbar-brand" href="{{ '/superset' + logo_target_path if current_user.username is defined else '#' }}">
         <img
           width="{{ app_icon_width }}"
           src="{{ appbuilder.app_icon }}"