From df4a45fea7f647f0d87cc0a9ceb2a4bf95342e9e Mon Sep 17 00:00:00 2001 From: Angus Hollands Date: Thu, 24 Apr 2025 08:55:05 +0100 Subject: [PATCH] fix: don't parse existing query --- theme/app/routes/sandbox.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme/app/routes/sandbox.tsx b/theme/app/routes/sandbox.tsx index 22db31e..311aa98 100644 --- a/theme/app/routes/sandbox.tsx +++ b/theme/app/routes/sandbox.tsx @@ -143,7 +143,7 @@ export default function ContentPage() { .filter((el) => el.ariaPressed === 'true')[0] .innerText.toLowerCase(); const encoded = btoa(toBinary(document.getElementsByTagName('textarea')[0].value)); - const params = new URLSearchParams(location.search); + const params = new URLSearchParams(); params.set('tab', whichTab); params.set('myst', encoded); window.history.replaceState({}, '', `${location.pathname}?${params}`);