diff --git a/packages/tldraw/src/components/TopPanel/ShareMenu/ShareMenu.tsx b/packages/tldraw/src/components/TopPanel/ShareMenu/ShareMenu.tsx index 665af2110..16543641d 100644 --- a/packages/tldraw/src/components/TopPanel/ShareMenu/ShareMenu.tsx +++ b/packages/tldraw/src/components/TopPanel/ShareMenu/ShareMenu.tsx @@ -36,7 +36,7 @@ const ShareMenu = () => { }, } const crushed = JSONCrush.crush(JSON.stringify(state)) - const link = `${window.location.href}/?d=${encodeURIComponent(crushed)}` + const link = `${window.location.origin}/?d=${encodeURIComponent(crushed)}` navigator.clipboard.writeText(link) } catch (err) { console.error(err)