diff --git a/code/web/release_notes/24.07.00.MD b/code/web/release_notes/24.07.00.MD index 226d3af979..2d761c7c15 100644 --- a/code/web/release_notes/24.07.00.MD +++ b/code/web/release_notes/24.07.00.MD @@ -75,6 +75,7 @@ ### Summon Updates - Adjustments to code in Summon getFacetSet function to correct a bug. Individual facet filters can now be unchecked and the filter unset by clicking the checkbox. (*AB*) +- Adjust code to ensure that the filter applies correctly no matter what page of results users are on when they apply it. (*AB*) ### Other Updates - Show the original translation term when translating text within Aspen. (*MDN*) diff --git a/code/web/sys/SearchObject/SummonSearcher.php b/code/web/sys/SearchObject/SummonSearcher.php index 4f024dd4dc..18c34d6fd6 100644 --- a/code/web/sys/SearchObject/SummonSearcher.php +++ b/code/web/sys/SearchObject/SummonSearcher.php @@ -496,7 +496,7 @@ public function getFacetSet() { if ($isApplied) { $facetSettings['removalUrl'] = $this->renderLinkWithoutFilter($facetId . ':' . $facetValue); } else { - $facetSettings['url'] = $this->renderSearchUrl() . '&filter[]=' . $facetId . ':' . urlencode($facetValue); + $facetSettings['url'] = $this->renderSearchUrl() . '&filter[]=' . $facetId . ':' . urlencode($facetValue) . '&page=1'; } $list[] = $facetSettings; }