fix: web SSO login redirect to correct basePath and origin (#23058)

This commit is contained in:
Yip Chung Lam 2025-07-28 18:17:01 +08:00 committed by GitHub
parent 7c6415551d
commit 7f004e2f41
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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) {