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 #11091 raise redirect issue (#11092)

非法操作f1366e8e195d
diff --git a/web/app/components/explore/app-list/index.tsx b/web/app/components/explore/app-list/index.tsx
index bd50708cb42..b8e7939328c 100644
--- a/web/app/components/explore/app-list/index.tsx
+++ b/web/app/components/explore/app-list/index.tsx
@@ -145,7 +145,7 @@ const Apps = ({
if (onSuccess)
onSuccess()
localStorage.setItem(NEED_REFRESH_APP_LIST_KEY, '1')
- getRedirection(isCurrentWorkspaceEditor, app, push)
+ getRedirection(isCurrentWorkspaceEditor, { id: app.app_id }, push)
}
catch (e) {
Toast.notify({ type: 'error', message: t('app.newApp.appCreateFailed') })
diff --git a/web/utils/app-redirection.ts b/web/utils/app-redirection.ts
index b14f660e631..534b019250c 100644
--- a/web/utils/app-redirection.ts
+++ b/web/utils/app-redirection.ts
@@ -4,12 +4,12 @@ export const getRedirection = (
redirectionFunc: (href: string) => void,
) => {
if (!isCurrentWorkspaceEditor) {
- redirectionFunc(`/app/${app.app_id}/overview`)
+ redirectionFunc(`/app/${app.id}/overview`)
}
else {
if (app.mode === 'workflow' || app.mode === 'advanced-chat')
- redirectionFunc(`/app/${app.app_id}/workflow`)
+ redirectionFunc(`/app/${app.id}/workflow`)
else
- redirectionFunc(`/app/${app.app_id}/configuration`)
+ redirectionFunc(`/app/${app.id}/configuration`)
}
}