Commit 3b5ebbe1 authored by aalin's avatar aalin Committed by Sam Mortenson
Browse files

Issue #3114990 by aalin, EJSeguinte: Views Pagers not updated when there are exposed filters

parent 7398d916
......@@ -39,7 +39,7 @@ class PagerPathSubscriber implements EventSubscriberInterface {
@$document->loadHTML($html);
$xpath = new \DOMXPath($document);
/** @var \DOMElement $node */
foreach ($xpath->query('//a[contains(@href,"?page=")]') as $node) {
foreach ($xpath->query('//a[(contains(@href,"?page=") or contains(@href,"&page="))]') as $node) {
$original_href = $node->getAttribute('href');
if ($original_href[0] === '?') {
$new_href = strtok($path, '?') . $original_href;
......
Supports Markdown
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