Skip to content

Commit 9a87eb4

Browse files
authored
Merge pull request #1688 from Kobzol/fix-compare-page-url-reset
Correctly remove query parameters in compare page
2 parents 7b8ab81 + b6294d1 commit 9a87eb4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

site/frontend/src/utils/navigation.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ export function createUrlWithAppendedParams(params: Dict<any>): URL {
1010
const stringified = value.toString();
1111
if (stringified !== "") {
1212
url.searchParams.set(key, stringified);
13+
} else {
14+
url.searchParams.delete(key);
1315
}
1416
}
1517
}

0 commit comments

Comments
 (0)