diff --git a/common/App.svelte b/common/App.svelte index 61b6fc1..0d309ef 100644 --- a/common/App.svelte +++ b/common/App.svelte @@ -20,7 +20,7 @@ ignoreNext = false return } - history.pushState({ type, value }, '', './?id=' + Math.trunc(Math.random() * Number.MAX_SAFE_INTEGER).toString()) + history.pushState({ type, value }, '', location.origin + location.pathname + '?id=' + Math.trunc(Math.random() * Number.MAX_SAFE_INTEGER).toString()) } page.subscribe((value) => { addPage(value, 'page')