fix(mothership): fix url keeping markdown hash on resource switch (#3979)

Co-authored-by: Theodore Li <theo@sim.ai>
This commit is contained in:
Theodore Li
2026-04-06 17:23:09 -07:00
committed by GitHub
parent 58571fe73d
commit 2164cef728

View File

@@ -195,6 +195,7 @@ export function Home({ chatId }: HomeProps = {}) {
} else {
url.searchParams.delete('resource')
}
url.hash = ''
window.history.replaceState(null, '', url.toString())
}, [activeResourceId])