Skip to content

Commit

Permalink
Keep filter url (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
ah-net committed Jan 23, 2024
1 parent 2321eaf commit fa2136f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Model/Catalog/Layer/Url/Strategy/QueryParameterStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,13 +229,12 @@ public function getCategoryFilterSelectUrl(MagentoHttpRequest $request, Item $it
sprintf(
'%s/',
trim($categoryUrlPath, '/'),
[
'_query' => $this->getAttributeFilters($request)
]
)
),
[
'_query' => $this->getAttributeFilters($request)
]
);


/*
We explode the url so that we can capture its parts and find the double values in order to remove them.
This is needed because the categoryUrlPath contains the store code in some cases and the directUrl as well.
Expand Down Expand Up @@ -429,7 +428,7 @@ public function apply(MagentoHttpRequest $request, ProductNavigationRequest $nav
$query = $request->getQuery();
$query->set(SELF::PARAM_ORDER, $sortOrder);
$request->setQuery($query);

$navigationRequest->setOrder($sortOrder);
}

Expand Down

0 comments on commit fa2136f

Please sign in to comment.