#16273: [Backport] Fix bug in method getUrlInStore() of product model#16310
Conversation
# Method $product->getUrlInStore() returning extremely long URLs, could be a bug
|
Hi @vasilii-b , please, take a look at failed unit tests |
…geturlinstore-wrong-link_mage21
…tore-wrong-link_mage21' into 16273-product-geturlinstore-wrong-link_mage21 # Conflicts: # app/code/Magento/Store/Test/Unit/Url/Plugin/RouteParamsResolverTest.php
|
Hi @sidolov, can you please help with failed test ? Is it possible to re-run them ? Thrown issues are not related to the current PR. |
|
Hi @vasilii-b , jobs restarted |
|
@sidolov please have a look on the tests again. It was failed again (only 1) with no-related PR issues. Thank you! |
|
Hi @vasilii-b. Thank you for your contribution. |
|
sorry but I'm confused about this functionality. and: when Use store in url is off then |
Original PR
#16468
Description
This PR reference changes how/what is returned when
productmodel methodgetUrlInStore()is called$product->getUrlInStore().Problem is in how the current store is checked and what is returned based on it.
Fixed Issues
Manual testing scenarios
For issue 1 - please see the issue description.
For issue 2:
.phtmlfile, list.phtml for example, call methodgetUrlInStore()for a product.Expected Result
Store code is not added into product url
Actual Result
Store code is added into product url
Contribution checklist