Skip to content
Open
Changes from 2 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
960c668
SwiftOtter-SOP-348 Resolve issues with Product listing with negative …
lbajsarowicz Jul 18, 2025
a5accf8
Merge branch '2.4-develop' into 2.4-develop-pagination-fix
engcom-Hotel Jul 25, 2025
d956c24
SwiftOtter-SOP-348 Add support for Catalog Search with negative page …
lbajsarowicz Aug 3, 2025
5b25921
SwiftOtter-SOP-348 Fix invalid Action Group reference
lbajsarowicz Aug 4, 2025
ab12b28
SwiftOtter-SOP-348 Don't use Toolbar to determine Current Page
lbajsarowicz Aug 4, 2025
3ec1e56
SwiftOtter-SOP-348 Change approach to verify current URL
lbajsarowicz Aug 4, 2025
f9152d2
SwiftOtter-SOP-348 Avoid referring to previously defined phrase
lbajsarowicz Aug 5, 2025
e648878
SwiftOtter-SOP-348 Replace variable with hardcoded URL in MFTF regex
lbajsarowicz Aug 5, 2025
1df0e7f
SwiftOtter-SOP-348 Replace variable with hardcoded URL in MFTF regex
lbajsarowicz Aug 5, 2025
130d7d6
SwiftOtter-SOP-348 Yet another fix.
lbajsarowicz Aug 6, 2025
5aca993
Merge remote-tracking branch 'core/2.4-develop' into 2.4-develop-pagi…
lbajsarowicz Aug 21, 2025
58a66a2
SwiftOtter-SOP-348 Reduce cyclomatic complexity (<10) + fix Static ch…
lbajsarowicz Aug 21, 2025
3cc831c
SwiftOtter-SOP-348 Restore redundant PHPDoc blocks
lbajsarowicz Aug 21, 2025
9312ce6
Merge branch '2.4-develop' into 2.4-develop-pagination-fix
engcom-Hotel Sep 10, 2025
7aa3abf
Merge branch '2.4-develop' into 2.4-develop-pagination-fix
engcom-Dash Sep 17, 2025
4e0214f
Fix static test failure
engcom-Dash Sep 17, 2025
6a01b74
Merge branch '2.4-develop' into 2.4-develop-pagination-fix
engcom-Dash Sep 18, 2025
9aa6ae0
Integration failure fixed
engcom-Dash Sep 18, 2025
98c77cf
Merge branch '2.4-develop' into 2.4-develop-pagination-fix
engcom-Dash Sep 24, 2025
fb9a3fd
Merge branch '2.4-develop' into 2.4-develop-pagination-fix
engcom-Hotel Sep 25, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions app/code/Magento/Catalog/Controller/Category/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,13 @@ public function execute()

$category = $this->_initCategory();
if ($category) {
// Negative ?p= value is not supported, redirect to a base version of category page.
if ($this->_request->getParam(Toolbar::PAGE_PARM_NAME) < 0) {
return $this->resultRedirectFactory->create()
->setHttpResponseCode(301)
->setUrl($category->getUrl());
}

$this->layerResolver->create(Resolver::CATALOG_LAYER_CATEGORY);
$settings = $this->_catalogDesign->getDesignSettings($category);

Expand Down