diff --git a/src/routes/cv/+page.svelte b/src/routes/cv/+page.svelte index 5c58b9b..e2321d3 100644 --- a/src/routes/cv/+page.svelte +++ b/src/routes/cv/+page.svelte @@ -32,7 +32,7 @@ // If the query parameter is not detected, reload the page with the parameter added if (!hideOnPrintParam) { - window.location.href = `${window.location.href}?hideOnPrint=1`; + window.location.href = `${window.location.href}${window.location.href.indexOf("?") > 0 ? "&" : "?"}hideOnPrint=1`; } });