Closed atul-emico closed 10 months ago
@atul-emico I'll see if we can replace the array unique with something else that only removes duplicate values if they are consecutive/ (like tables/round/round) i think this still solves the original problem and fixes your specific problem.
Issue Brief
On category page we are showing subcategory slider on top (before products). The url of that subcategories are wrong.
Environment
Steps to reproduce
root category
Product attributes - -Shape
The issue is in code - File - vendor/tweakwise/magento2-tweakwise/Model/Catalog/Layer/Url/Strategy/PathSlugStrategy.php Line - 563
$url = implode('/', array_unique($explode));
array_unique is removing save values. There is comment that it is done to avoid double values. But in ur case we need to have that values.
Actual result
Expected result
Subcategory url should be - base_url/tables-dinning-tables/round/shape/round