Skip to content

Commit de77a50

Browse files
committed
ACP2E-1413, fixed static
1 parent 8d1f3c7 commit de77a50

File tree

1 file changed

+3
-3
lines changed
  • app/code/Magento/Catalog/Controller/Category

1 file changed

+3
-3
lines changed

app/code/Magento/Catalog/Controller/Category/View.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public function execute()
249249
->addBodyClass('categorypath-' . $this->categoryUrlPathGenerator->getUrlPath($category))
250250
->addBodyClass('category-' . $category->getUrlKey());
251251

252-
if ($this->isToolbarAction() && $this->toolbarMemorizer->isMemorizingAllowed()) {
252+
if ($this->shouldRedirectOnToolbarAction()) {
253253
$this->getResponse()->setRedirect($this->_redirect->getRedirectUrl());
254254
}
255255
return $page;
@@ -305,11 +305,11 @@ private function applyLayoutUpdates(
305305
*
306306
* @return bool
307307
*/
308-
private function isToolbarAction(): bool
308+
private function shouldRedirectOnToolbarAction(): bool
309309
{
310310
$params = $this->getRequest()->getParams();
311311

312-
return empty(array_intersect([
312+
return $this->toolbarMemorizer->isMemorizingAllowed() && empty(array_intersect([
313313
Toolbar::PAGE_PARM_NAME,
314314
Toolbar::ORDER_PARAM_NAME,
315315
Toolbar::DIRECTION_PARAM_NAME,

0 commit comments

Comments
 (0)