diff --git a/src/utils.ts b/src/utils.ts index 849c0aa8..7ce82741 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -306,5 +306,5 @@ export function withFragment(input: string, hash: string): string { } export function withoutFragment(input: string): string { - return withFragment(input, ""); + return stringifyParsedURL({ ...parseURL(input), hash: "" }); }