Skip to content

Commit

Permalink
Display Home link only when Logo Target Path is set
Browse files Browse the repository at this point in the history
  • Loading branch information
agatapst committed Nov 30, 2020
1 parent 37a487f commit 258e5b8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions superset/app.py
Expand Up @@ -214,9 +214,10 @@ def init_views(self) -> None:
#
# Setup regular views
#
appbuilder.add_link(
"Home", label=__("Home"), href="/superset/welcome",
)
if appbuilder.app.config["LOGO_TARGET_PATH"]:
appbuilder.add_link(
"Home", label=__("Home"), href="/superset/welcome",
)
appbuilder.add_view(
AnnotationLayerModelView,
"Annotation Layers",
Expand Down

0 comments on commit 258e5b8

Please sign in to comment.