Closed
Description
Preconditions (*)
- Affected versions: 2.2.9, 2.3.3 (not verified by myself but responsible code is the same: 2.2.10, 2.4-develop)
Steps to reproduce (*)
- Edit a product and add "test url key" as url key
- Save the product
This can be reproduced via rest API too by updating a product url key.
Expected result (*)
- Url key is transliterated to "test-url-key"
Actual result (*)
- Url key is still "test url key"
Additional information
- This bug was introduced with this commit: 6f4f511
- Responsible code in \Magento\CatalogUrlRewrite\Model\ProductUrlPathGenerator::prepareProductUrlKey
- I am not sure if reverting the line back to
return $product->formatUrlKey($urlKey === '' || $urlKey === null ? $product->getName() : $urlKey);
will break arabic urls again so we might have to find a different solution.