Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Category filter doesn't take in account applied filter #143

Merged
merged 1 commit into from
Jan 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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