diff --git a/Block/LayeredNavigation/RenderLayered/AnchorRendererTrait.php b/Block/LayeredNavigation/RenderLayered/AnchorRendererTrait.php index e6a8bf1c..18dd9851 100644 --- a/Block/LayeredNavigation/RenderLayered/AnchorRendererTrait.php +++ b/Block/LayeredNavigation/RenderLayered/AnchorRendererTrait.php @@ -36,7 +36,7 @@ public function renderAnchorHtmlTagAttributes(Item $item) */ protected function getAnchorTagAttributes(Item $item): array { - $itemUrl = $this->getItemUrl($item); + $itemUrl = preg_replace('/&p=\d+/', '', $this->getItemUrl($item)); if ($this->filterHelper->shouldFilterBeIndexable($item)) { return ['href' => $itemUrl]; } diff --git a/Model/NavigationConfig.php b/Model/NavigationConfig.php index caab2483..046a6744 100644 --- a/Model/NavigationConfig.php +++ b/Model/NavigationConfig.php @@ -94,7 +94,10 @@ public function __construct( */ public function getFilterFormInput(): array { - return $this->filterFormInputProvider->getFilterFormInput(); + $filterFormInput = $this->filterFormInputProvider->getFilterFormInput(); + unset($filterFormInput['p']); + + return $filterFormInput; } /**