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.

rm useless router.replace (#27386)

yaleia2fe4a28c3bc
diff --git a/web/app/components/swr-initializer.tsx b/web/app/components/swr-initializer.tsx
index 1ab15676592..b7cd767c7a8 100644
--- a/web/app/components/swr-initializer.tsx
+++ b/web/app/components/swr-initializer.tsx
@@ -56,10 +56,10 @@ const SwrInitializer = ({
}
const redirectUrl = resolvePostLoginRedirect(searchParams)
- if (redirectUrl)
+ if (redirectUrl) {
location.replace(redirectUrl)
- else
- router.replace(pathname)
+ return
+ }
setInit(true)
}