diff --git a/src/routes/(app)/players/+page.svelte b/src/routes/(app)/players/+page.svelte index 9300297..8df95c0 100644 --- a/src/routes/(app)/players/+page.svelte +++ b/src/routes/(app)/players/+page.svelte @@ -39,9 +39,7 @@ const querySortBy = $page.url.searchParams.get('sortBy'); if (sortBy && querySortBy !== sortBy) { $page.url.searchParams.set('sortBy', sortBy); - if (browser) { - goto(`?${$page.url.searchParams.toString()}`); - } + window.history.replaceState(history.state, '', `?${$page.url.searchParams.toString()}`); } } $: {