Skip to content

Commit 712b8d5

Browse files
committed
refactor(withoutFragment): decouple from withFragment
1 parent 48237ab commit 712b8d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -306,5 +306,5 @@ export function withFragment(input: string, hash: string): string {
306306
}
307307

308308
export function withoutFragment(input: string): string {
309-
return withFragment(input, "");
309+
return stringifyParsedURL({ ...parseURL(input), hash: "" });
310310
}

0 commit comments

Comments
 (0)