GitHub user dosubot[bot] added a comment to the discussion: Changing 
LOGO_TARGET_PATH adds a 'Home' menu

<!-- Answer -->
To hide the 'Home' menu across all pages in Superset, you can adjust the 
configuration in the `superset_config.py` file. The 'Home' menu is not 
generated in the `navbar.html` template but is added during the application 
initialization process. You can prevent the 'Home' menu from being added by 
ensuring that the `LOGO_TARGET_PATH` configuration is not set or is set to a 
falsy value. Here's how you can do it:

```python
# In your superset_config.py
LOGO_TARGET_PATH = None  # or set to a falsy value like an empty string
```

By setting `LOGO_TARGET_PATH` to `None` or an empty string, the condition for 
adding the 'Home' link will evaluate to false, and the 'Home' menu will not be 
added across all pages 
<sup>[[1]](https://github.com/apache/superset/blob/master/superset-frontend/src/features/home/Menu.tsx)</sup><sup>[[2]](https://github.com/apache/superset/blob/master/superset/initialization/__init__.py)</sup>.


<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*

---
<sup>Help Dosu learn! Give it feedback: [Great 
Response](https://app.dosu.dev/response-feedback/58d33512-2144-482c-908f-effa6d88e648?feedback_type=great_response)
 | [Irrelevant 
Answer](https://app.dosu.dev/response-feedback/58d33512-2144-482c-908f-effa6d88e648?feedback_type=irrelevant_answer)
 | [Incorrect 
Sources](https://app.dosu.dev/response-feedback/58d33512-2144-482c-908f-effa6d88e648?feedback_type=incorrect_sources)
 | [Too 
Verbose](https://app.dosu.dev/response-feedback/58d33512-2144-482c-908f-effa6d88e648?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/58d33512-2144-482c-908f-effa6d88e648?feedback_type=hallucination)
 | [Bug 
Report](https://app.dosu.dev/response-feedback/58d33512-2144-482c-908f-effa6d88e648?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/58d33512-2144-482c-908f-effa6d88e648?feedback_type=other)</sup>


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

----
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