-
Notifications
You must be signed in to change notification settings - Fork 9.4k
magento/magento2#35371: Product page gives error because of url rewrites #39670
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
magento/magento2#35371: Product page gives error because of url rewrites #39670
Conversation
- fixed preparing url path of category
Hi @Himsoft. Thank you for your contribution!
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
@magento run all tests |
- fixed preparing url path of category
@magento run all tests |
- Fixed static tests.
@magento run all tests |
@magento run Functional Tests B2B |
1 similar comment
@magento run Functional Tests B2B |
The failed tests are not related to fixes, they look like false positives, please pay attention to this during the review. |
@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.
Hello @Himsoft,
Thank you for your contribution!
Please make the changes as per the below review comment, also add appropriate test data in its file to satisfy the PR changes.
Thanks
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
* Copyright 2025 Adobe |
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.
It must be 2019, as the file has been created in this year only.
@magento run all tests |
@Himsoft Thank you for the contribution! |
@magento run all tests |
@magento run all tests |
@magento run all tests |
@engcom-Hotel The test data changes has been added by @Himsoft. Also, I have fixed some of the failing static test cases. Hence Moving this PR to Pending Review. |
@magento run all tests |
@magento run Functional Tests B2B, Functional Tests CE, Functional Tests EE |
Hi @Himsoft, Thanks for the collaboration & contribution! ✔️ QA PassedPreconditions:
Steps to reproduce
Before: ✖️ ![]() After: ✔️ ![]() Builds are failed. Hence, moving this PR to Extended Testing. Thanks. |
@magento run Functional Tests B2B, Functional Tests CE |
667c0ad
into
magento:2.4-develop
Description (*)
In situation when category with level > 2 have product url key at the beginning of its url key, str_replace(), used in \Magento\CatalogUrlRewrite\Model\Storage\DynamicStorage::findProductRewriteByRequestPath, replaces all parts of the category path equal to the product url key.
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Before fix:
There is 404 error.
After fix:
The product page is loaded successfully.
Questions or comments
Contribution checklist (*)