From b126698b41cb5f9d5c0dffc0c2fb92ea4182ef63 Mon Sep 17 00:00:00 2001 From: guichardla Date: Tue, 12 Aug 2025 16:48:10 +0200 Subject: [PATCH 1/3] fix: oauth and ldap login ignoring superset_app_root --- superset-frontend/src/pages/Login/index.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/superset-frontend/src/pages/Login/index.tsx b/superset-frontend/src/pages/Login/index.tsx index 8c56a4c8c99a..417da570480c 100644 --- a/superset-frontend/src/pages/Login/index.tsx +++ b/superset-frontend/src/pages/Login/index.tsx @@ -30,6 +30,7 @@ import { import { useState } from 'react'; import { capitalize } from 'lodash/fp'; import getBootstrapData from 'src/utils/getBootstrapData'; +import { ensureAppRoot } from 'src/utils/pathUtils'; type OAuthProvider = { name: string; @@ -87,7 +88,7 @@ export default function Login() { const onFinish = (values: LoginForm) => { setLoading(true); - SupersetClient.postForm('/login/', values, '').finally(() => { + SupersetClient.postForm(ensureAppRoot('/login/'), values, '').finally(() => { setLoading(false); }); }; @@ -126,7 +127,7 @@ export default function Login() { {providers.map((provider: OIDProvider) => ( >