-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
#16273: [Backport] Fix bug in method getUrlInStore() of product model #16310
#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
product
model 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:
.phtml
file, 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