From 5ddd4e1c3c55b5cae0de35b0a272b10058e4cae3 Mon Sep 17 00:00:00 2001 From: secondl1ght Date: Mon, 4 Dec 2023 20:38:16 -0700 Subject: [PATCH] delete params on redirect --- src/routes/map/+layout.server.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/routes/map/+layout.server.ts b/src/routes/map/+layout.server.ts index f66a6cea..11ac64da 100644 --- a/src/routes/map/+layout.server.ts +++ b/src/routes/map/+layout.server.ts @@ -20,6 +20,7 @@ export function load({ url }) { throw redirect(301, `/communities/map?language=${language}`); case communitiesOnly: + url.searchParams.delete('communitiesOnly'); throw redirect(301, '/communities/map'); } }