From 8b4bbfa05b67ca14ee80978e4e71fa8927f28819 Mon Sep 17 00:00:00 2001 From: "claude[bot]" <209825114+claude[bot]@users.noreply.github.com> Date: Wed, 2 Jul 2025 18:09:53 +0000 Subject: [PATCH] fix: redirect agent uploads to specific agent page instead of builder - Changed redirect destination from `/build?flowID=${response.id}` to `/library/agents/${response.id}` - Users now navigate directly to their uploaded agent's page in the library - Removed unnecessary query parameter construction Co-authored-by: Nicholas Tindle --- .../src/components/library/library-upload-agent-dialog.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/autogpt_platform/frontend/src/components/library/library-upload-agent-dialog.tsx b/autogpt_platform/frontend/src/components/library/library-upload-agent-dialog.tsx index a032f23361..01039a6e4c 100644 --- a/autogpt_platform/frontend/src/components/library/library-upload-agent-dialog.tsx +++ b/autogpt_platform/frontend/src/components/library/library-upload-agent-dialog.tsx @@ -82,8 +82,7 @@ export default function LibraryUploadAgentDialog(): React.ReactNode { description: "Agent uploaded successfully", variant: "default", }); - const qID = "flowID"; - window.location.href = `/build?${qID}=${response.id}`; + window.location.href = `/library/agents/${response.id}`; } catch (error) { form.setError("root", { message: `Could not create agent: ${error}`,