mirror of https://github.com/langgenius/dify.git
fix: web SSO login redirect to correct basePath and origin (#23058)
This commit is contained in:
parent
7c6415551d
commit
7f004e2f41
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue