diff --git a/flask_appbuilder/security/views.py b/flask_appbuilder/security/views.py index d56389fc9d..2fbaec37a8 100644 --- a/flask_appbuilder/security/views.py +++ b/flask_appbuilder/security/views.py @@ -477,7 +477,11 @@ def login(self): @expose("/logout/") def logout(self): logout_user() - return redirect(self.appbuilder.get_url_for_index) + return redirect( + self.appbuilder.app.config.get( + "LOGOUT_REDIRECT_URL", self.appbuilder.get_url_for_index + ) + ) class AuthDBView(AuthView):