File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/code/Magento/Catalog/Controller/Category Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments