rusackas commented on code in PR #41222:
URL: https://github.com/apache/superset/pull/41222#discussion_r3440765756
##########
docs/admin_docs/configuration/configuring-superset.mdx:
##########
@@ -455,6 +455,51 @@ def FLASK_APP_MUTATOR(app: Flask) -> None:
app.before_request_funcs.setdefault(None,
[]).append(make_session_permanent)
```
+## Customizing the landing page (index view)
+
+The page served at `/` is rendered by an index view. By default Superset
registers
+`SupersetIndexView`, which redirects to `/superset/welcome/` and also adds the
+`/lang/<locale>` locale handler. You can replace it with your own view, for
example
+to send users straight to a specific dashboard or to a chart list.
+
+Set `FAB_INDEX_VIEW` to the **importable dotted path** of your view class.
Flask-AppBuilder
Review Comment:
`FAB_INDEX_VIEW` is read by FAB itself, not Superset. In
`flask_appbuilder/base.py` `init_app()` does `_index_view =
app.config.get("FAB_INDEX_VIEW"); if _index_view: self.indexview =
dynamic_class_import(_index_view)`, which runs *after* our
`appbuilder.indexview = SupersetIndexView` and overrides it. So the config
takes effect as documented — no change needed in `configure_fab()`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]