Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

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

Yip Chung Lam7f004e2f4168
diff --git a/web/service/base.ts b/web/service/base.ts
index 8ffacaa0f1c..80818998372 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) {