Skip to content

fix: respect Magento product list limit configuration#399

Open
woutk88 wants to merge 1 commit into
EmicoEcommerce:masterfrom
woutk88:fix-respect-magento-product-list-limit
Open

fix: respect Magento product list limit configuration#399
woutk88 wants to merge 1 commit into
EmicoEcommerce:masterfrom
woutk88:fix-respect-magento-product-list-limit

Conversation

@woutk88

@woutk88 woutk88 commented Jun 19, 2026

Copy link
Copy Markdown

This module currently reads product_list_limit directly from the request. Any value (including "all") is honored and can result in large result sets (up to 1000 items). This behavior can be abused by 🤖 bots or scripts to generate expensive requests, and we see crawlers requesting limits higher than those offered in the UI ⚠️

The Magento pagination configuration should be respected and unsupported request limits should be rejected, including "all" when it is not allowed. Default Magento validates the page size via its toolbar logic. This PR follows the same pagination limits.


Not in this PR, but it would be a nice addition to also redirect URLs with invalid product_list_limit values to the correct normalized URL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant