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.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: infinite jump to login url (#27178)
Joelfb6f05c2676c
diff --git a/web/service/base.ts b/web/service/base.tsindex 9f2b885cb46..fc9a649eec2 100644--- a/web/service/base.ts+++ b/web/service/base.ts@@ -114,6 +114,15 @@ export type IOtherOptions = {onDataSourceNodeError?: IOnDataSourceNodeError}+function jumpTo(url: string) {+ if(!url)+ return+ const targetPath = new URL(url, globalThis.location.origin).pathname+ if(targetPath === globalThis.location.pathname)+ return+ globalThis.location.href = url+}+function unicodeToChar(text: string) {if (!text)return ''@@ -576,11 +585,11 @@ export const request = async<T>(url: string, options = {}, otherOptions?: IOtherreturn Promise.reject(err)}if (code === 'not_init_validated' && IS_CE_EDITION) {- globalThis.location.href = `${globalThis.location.origin}${basePath}/init`+ jumpTo(`${globalThis.location.origin}${basePath}/init`)return Promise.reject(err)}if (code === 'not_setup' && IS_CE_EDITION) {- globalThis.location.href = `${globalThis.location.origin}${basePath}/install`+ jumpTo(`${globalThis.location.origin}${basePath}/install`)return Promise.reject(err)}@@ -589,15 +598,14 @@ export const request = async<T>(url: string, options = {}, otherOptions?: IOtherif (refreshErr === null)return baseFetch<T>(url, options, otherOptionsForBaseFetch)if (location.pathname !== `${basePath}/signin` || !IS_CE_EDITION) {- globalThis.location.href = loginUrl+ jumpTo(loginUrl)return Promise.reject(err)}if (!silent) {Toast.notify({ type: 'error', message })return Promise.reject(err)}- if (globalThis.location.href !== loginUrl)- globalThis.location.href = loginUrl+ jumpTo(loginUrl)return Promise.reject(err)}else {