From fa51f94c54fe33a8ed0400321032f9ee65d6fc89 Mon Sep 17 00:00:00 2001 From: Theodore Li Date: Mon, 6 Apr 2026 09:37:15 -0700 Subject: [PATCH 1/2] fix(mothership): fix url keeping markdown hash on resource switch (#3968) Co-authored-by: Theodore Li --- apps/sim/app/workspace/[workspaceId]/home/home.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/sim/app/workspace/[workspaceId]/home/home.tsx b/apps/sim/app/workspace/[workspaceId]/home/home.tsx index 02109c3507b..d76f17ff454 100644 --- a/apps/sim/app/workspace/[workspaceId]/home/home.tsx +++ b/apps/sim/app/workspace/[workspaceId]/home/home.tsx @@ -195,6 +195,7 @@ export function Home({ chatId }: HomeProps = {}) { } else { url.searchParams.delete('resource') } + url.hash = '' window.history.replaceState(null, '', url.toString()) }, [activeResourceId]) From a7e4f23586c07640d6617565a5a21af3700bd193 Mon Sep 17 00:00:00 2001 From: Theodore Li Date: Mon, 6 Apr 2026 12:43:00 -0400 Subject: [PATCH 2/2] =?UTF-8?q?Revert=20"fix(mothership):=20fix=20url=20ke?= =?UTF-8?q?eping=20markdown=20hash=20on=20resource=20switch=20(#3=E2=80=A6?= =?UTF-8?q?"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit fa51f94c54fe33a8ed0400321032f9ee65d6fc89. --- apps/sim/app/workspace/[workspaceId]/home/home.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/sim/app/workspace/[workspaceId]/home/home.tsx b/apps/sim/app/workspace/[workspaceId]/home/home.tsx index d76f17ff454..02109c3507b 100644 --- a/apps/sim/app/workspace/[workspaceId]/home/home.tsx +++ b/apps/sim/app/workspace/[workspaceId]/home/home.tsx @@ -195,7 +195,6 @@ export function Home({ chatId }: HomeProps = {}) { } else { url.searchParams.delete('resource') } - url.hash = '' window.history.replaceState(null, '', url.toString()) }, [activeResourceId])