GitHub user ampil added a comment to the discussion: Changing LOGO_TARGET_PATH 
adds a 'Home' menu

@dosu

`navbar.html` does not have a code that generates the 'Home' menu. 
Here is the code:
```
{% set menu = appbuilder.menu %}
{% set app_icon_width = appbuilder.app.config['APP_ICON_WIDTH'] %}
{% set logo_target_path = appbuilder.app.config['LOGO_TARGET_PATH'] or '/' %}
{% set root_path = logo_target_path if not logo_target_path.startswith('/') 
else '/superset' + logo_target_path if current_user.username is defined else 
'#'  %}

{% block navbar %}
  <div id="app-menu">
    <div class="navbar navbar-static-top {{menu.extra_classes}}" 
role="navigation">
      <div class="container-fluid">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" 
data-target=".navbar-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="{{ root_path }}">
            <img
              width="{{ app_icon_width }}"
              src="{{ assets_prefix }}{{ appbuilder.app_icon }}"
              alt="{{ appbuilder.app_name }}"
              loading="lazy"
            />
          </a>
        </div>
      </div>
    </div>
  </div>
{% endblock %}
```



GitHub link: 
https://github.com/apache/superset/discussions/33295#discussioncomment-12990067

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to