mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-28 03:00:29 -04:00
fix(mothership): fix url keeping markdown hash on resource switch (#3979)
Co-authored-by: Theodore Li <theo@sim.ai>
This commit is contained in:
@@ -195,6 +195,7 @@ export function Home({ chatId }: HomeProps = {}) {
|
||||
} else {
|
||||
url.searchParams.delete('resource')
|
||||
}
|
||||
url.hash = ''
|
||||
window.history.replaceState(null, '', url.toString())
|
||||
}, [activeResourceId])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user