Skip to content

Commit

Permalink
Fix 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
paoloricciuti committed Jan 23, 2023
1 parent 16b1a7d commit 6f3252a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/sveltekit-search-params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export function queryParameters<T extends object>(
debouncedTimeouts.set("queryParameters", setTimeout(() => {
const updatedPage = get(page);
const updatedQuery = new URLSearchParams(updatedPage.url.searchParams);
goto(`${updatedQuery.toString()}`, GOTO_OPTIONS_PUSH);
goto(`?${updatedQuery.toString()}`, GOTO_OPTIONS_PUSH);
}, debounceHistory));
}
batchedUpdates.clear();
Expand Down Expand Up @@ -251,7 +251,7 @@ export function queryParam<T = string>(
debouncedTimeouts.set(name, setTimeout(() => {
const updatedPage = get(page);
const updatedQuery = new URLSearchParams(updatedPage.url.searchParams);
goto(`${updatedQuery.toString()}`, GOTO_OPTIONS_PUSH);
goto(`?${updatedQuery.toString()}`, GOTO_OPTIONS_PUSH);
}, debounceHistory));
}
batchedUpdates.clear();
Expand Down

0 comments on commit 6f3252a

Please sign in to comment.