Commit 7f41ea75 authored by git's avatar git Committed by borisson_
Browse files

Issue #2704669 by karlosvh: Remove page parameter from urls

parent d8546746
...@@ -58,6 +58,10 @@ class QueryString extends UrlProcessorPluginBase { ...@@ -58,6 +58,10 @@ class QueryString extends UrlProcessorPluginBase {
// First get the current list of get parameters. // First get the current list of get parameters.
$get_params = $this->request->query; $get_params = $this->request->query;
// When adding/removing a filter the number of pages may have changed,
// possibly resulting in an invalid page parameter.
$get_params->remove('page');
// Set the url alias from the the facet object. // Set the url alias from the the facet object.
$this->urlAlias = $facet->getUrlAlias(); $this->urlAlias = $facet->getUrlAlias();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment