-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#26499 Always transliterate product url key #26506
#26499 Always transliterate product url key #26506
Conversation
Hi @DanieliMi. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
@magento run all tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @DanieliMi.
Thank you for your collaboration. I would ask you to take a look at the failing functional tests. According to the screenshot, it looks like the system tries to open a testable product using the wrong URL after changes introduced in the current PR.
Exactly it tries to visit the product page based on the product name with spaces in it. This PR aims to replace the spaces with '_'. I'll have to update the according tests. |
@magento run all tests |
@rogyar I've had a look at the functional tests and fixed them. Currently static tests and database tests are failing. The static tests fail due to a missing class description, I am not sure what it best could be since I only changed a line in the class do you have any ideas? I am not sure how the database compare tests work and how to fix them could you assist me with them? |
… always_transliterate_product_url_key
I will try fix it. |
@magento run all tests |
bdc8030
to
27dd58a
Compare
Hi @rogyar, thank you for the review. |
@DanieliMi thank you for contributing. Please accept Community Contributors team invitation here to gain extended permissions for this repository. |
✔️ QA Passed |
Hi @DanieliMi, thank you for your contribution! |
Description (*)
\Magento\CatalogUrlRewrite\Model\ProductUrlPathGenerator::prepareProductUrlKey
will always call\Magento\Catalog\Model\Product::formatUrlKey
in order to transliterate it and avoid spaces, non latin characters, etc. in url_key.Fixed Issues (if relevant)
Manual testing scenarios (*)
This can be reproduced via rest API too by updating a product url key.
Questions or comments
It might conflict with the issue that has been fixed in 6f4f511. If the tests fail we'll have to think of a different solution.
Contribution checklist (*)