Skip to content

Commit eab6aed

Browse files
author
Theodore Li
committed
fix(mothership): fix url keeping markdown hash on resource switch
1 parent 7971a64 commit eab6aed

File tree

1 file changed

+1
-0
lines changed
  • apps/sim/app/workspace/[workspaceId]/home

1 file changed

+1
-0
lines changed

apps/sim/app/workspace/[workspaceId]/home/home.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ export function Home({ chatId }: HomeProps = {}) {
195195
} else {
196196
url.searchParams.delete('resource')
197197
}
198+
url.hash = ''
198199
window.history.replaceState(null, '', url.toString())
199200
}, [activeResourceId])
200201

0 commit comments

Comments
 (0)