@@ -14,7 +14,7 @@ const copyToClipboard = (text: string) => navigator.clipboard.writeText(text)
(err) => console.error('Async: Could not copy text: ', err)
);
-const shareApp = (state: RootState) => copyToClipboard(`${window.location.href}?state=${encodeURIComponent(JSON.stringify(state))}`);
+const shareApp = (state: RootState) => copyToClipboard(`${window.location.origin}${window.location.pathname}?state=${encodeURIComponent(JSON.stringify(state))}`);
export interface Props {
fullPath: string;