I've tried reindexing, updating the products, setup:upgrade, etc and none of this seems to work.
Magento 2.4.5 – Layered Navigation Filter Not Working After Upgrade
magento2.4.5
magento2.4.5
I've tried reindexing, updating the products, setup:upgrade, etc and none of this seems to work.
Best Answer
This issue has already been resolved in Magento 2.4-develop branch. To apply the fix, apply this patch: https://github.com/magento/magento2/commit/a9170022cce29993e586ffaa6f4c1cc357ee3b11.diff
Related commit: https://github.com/magento/magento2/commit/a9170022cce29993e586ffaa6f4c1cc357ee3b11
Related pull request: https://github.com/magento/magento2/pull/35986/
There is another issue: the number of total items in the toolbar is incorrect. Magento (Adobe) has published a patch for this issue:
ACSD-48234: catalog search result shows incorrect category item count Display Out of Stock Products enabled https://experienceleague.adobe.com/docs/commerce-knowledge-base/kb/support-tools/patches/v1-1-25/acsd-48234-catalog-search-result-shows-incorrect-category-item-count-when-show-out-of-stock-option-enabled.html?lang=en
You can apply it via the Quality Patches Tool (QPT) or via composer patch file: https://github.com/magento/quality-patches/tree/master/patches/os searching for "ACSD-48234"