Skip to content

Product category url rewrite missing storeview specific url_key #26393

Closed
@juhanihaapala

Description

@juhanihaapala

Preconditions (*)

  1. Magento 2.3

Steps to reproduce (*)

  1. Create 2 Store Views
  2. Create category Category 1
  3. Create Category 2 under Category 1
  4. Create store view specific url key for Category 1 for example category-1-1
  5. Create new product add it to Category 2

Expected result (*)

  1. 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 (*)

  1. 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

Labels

Area: FrontendComponent: UrlRewriteEvent: mm20inFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReported on 2.4.0Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions