We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e064536 commit ae0676eCopy full SHA for ae0676e
src/search/components/results/Aggregations.tsx
@@ -30,13 +30,17 @@ export function SearchResultsAggregations({ aggregations }: Props) {
30
} else {
31
params.append('toplevel', toplevel)
32
}
33
+ // Reset pagination when filters change to prevent showing 0 results
34
+ params.delete('page')
35
return `/${locale}${asPathRoot}?${params}`
36
37
38
function makeClearHref() {
39
const [asPathRoot, asPathQuery = ''] = asPath.split('#')[0].split('?')
40
const params = new URLSearchParams(asPathQuery)
41
params.delete('toplevel')
42
+ // Reset pagination when clearing filters
43
44
45
46
0 commit comments