paulsonkevgit commented on issue #34441:
URL: https://github.com/apache/superset/issues/34441#issuecomment-3141840209

   I have looked into those issues already,
   
   Small code snippet(WELCOME_PAGE_REDIRECT_DEFAULT='/welcome/form')
   
   class MyDashboardView(IndexView):
       @expose("/")
       def index(self) -> FlaskResponse:
           if not g.user or not get_user_id():
               # Do steps for anonymous user e.g.
               return redirect("/login")
           # Do steps for authenticated user e.g.
           return redirect(WELCOME_PAGE_REDIRECT_DEFAULT)
   
   
   def view1(SupersetsetApp):
       from superset.views.user_D.views import DashboardModelView3
       import time
       appbuilder.add_view_no_menu(DashboardModelView3)
       appbuilder.add_link(
               "Welcome Form",
               label=("Information"),
               href="/welcome/form",
               icon="fa-dashboard",
               category="",
               category_icon="",
           )
       
   
   FLASK_APP_MUTATOR=view9
   
   FAB_INDEX_VIEW = f"{MyDashboardView.__module__}.{MyDashboardView.__name__}"
   
   


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

Reply via email to