Skip to content

Commit

Permalink
Merge pull request #87 from AlexanderBlanchardAC/summon_facet_results
Browse files Browse the repository at this point in the history
Repeating merged pr, moving from 24.07 to 24.08
  • Loading branch information
AlexanderBlanchardAC authored Jul 17, 2024
2 parents 70362dc + 125cc9e commit aa074df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions code/web/release_notes/24.08.00.MD
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
- Fixed bug with unexpected 404 errors on Web Builder pages. (Ticket 123122) (*KP*)

// alexander
### Summon Updates
- Adjust code to ensure that the filter applies correctly no matter what page of results users are on when they apply it. (*AB*)

// jacob

Expand Down
2 changes: 1 addition & 1 deletion code/web/sys/SearchObject/SummonSearcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit aa074df

Please sign in to comment.