From 7f004e2f41680e7c69350c6ad979766fc7001dd2 Mon Sep 17 00:00:00 2001 From: Yip Chung Lam Date: Mon, 28 Jul 2025 18:17:01 +0800 Subject: [PATCH] fix: web SSO login redirect to correct basePath and origin (#23058) --- web/service/base.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/service/base.ts b/web/service/base.ts index 8ffacaa0f1..8081899837 100644 --- a/web/service/base.ts +++ b/web/service/base.ts @@ -115,7 +115,7 @@ function requiredWebSSOLogin(message?: string, code?: number) { params.append('message', message) if (code) params.append('code', String(code)) - globalThis.location.href = `/webapp-signin?${params.toString()}` + globalThis.location.href = `${globalThis.location.origin}${basePath}/webapp-signin?${params.toString()}` } export function format(text: string) {