Closed
Description
Preconditions (*)
- Magento 2.3
Steps to reproduce (*)
- Create 2 Store Views
- Create category Category 1
- Create Category 2 under Category 1
- Create store view specific url key for Category 1 for example
category-1-1
- Create new product add it to Category 2
Expected result (*)
- Generated url path for created product with category in store view to have the store view specific url_key for category 1 for example
category-1-1/category-2/product
Actual result (*)
- Generated url path is generated with default category url_key for product
category-1/category-2/product
Reason is here https://github.com/magento/magento2/blob/2.4-develop/app/code/Magento/CatalogUrlRewrite/Service/V1/StoreViewService.php#L83
this checks only the "current" category not hierarchial.
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.4-develop branchGate 2 Passed. Manual verification of the issue description passedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentIndicates original Magento version for the Issue report.The issue has been reproduced on latest 2.4-develop branch