Skip to content

Commit

Permalink
delete params on redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
secondl1ght committed Dec 5, 2023
1 parent a1eee22 commit 5ddd4e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/routes/map/+layout.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}

0 comments on commit 5ddd4e1

Please sign in to comment.