-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Product page gives error because of url rewrites #35371
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
Comments
Hi @edas11. Thank you for your report.
Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
For more details, review the Magento Contributor Assistant documentation. Add a comment to assign the issue: To learn more about issue processing workflow, refer to the Code Contributions.
🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket. ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
Hi @engcom-November. Thank you for working on this issue.
|
@magento give me 2.4-develop instance |
Hi @engcom-November. Thank you for your request. I'm working on Magento instance for you. |
Hi @engcom-November, unfortunately there is no ability to deploy Magento instance at the moment. Please try again later. |
Hi @edas11 , Steps performed: Kindly recheck the issue on Magento 2.4-develop branch as it is having latest code base and provide missing steps if any if the issue is still reproducible. |
Hi, Thanks for looking into this. The categories and product in your test are not correct. First of all, nesting level is wrong. It should be at least 3: Root Category -> Category -> Sub Category. Also, category and product names are wrong. Error only happens if url path of category has product url path in it preceded by a forward slash. This basically means that category name has to have product name at the beginning. For example if product is |
Thanks for your inputs @edas11 . Verified the issue again on Magento 2.4-develop branch and the issue is reproducible only if category name having product name at the beginning. (Ex: Product name: |
✅ Jira issue https://jira.corp.magento.com/browse/AC-2950 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-November. Thank you for verifying the issue. |
❌ Cannot export the issue. This GitHub issue is already linked to Jira issue(s): https://jira.corp.adobe.com/browse/AC-2950 |
@magento I am working on this |
- fixed preparing url path of category
- fixed preparing url path of category
- Fixed static tests.
Hi @edas11 , Thanks for your reporting and collaboration. Steps to reproduce : Stores -> Configuration -> Catalog -> Catalog -> Search Engine Optimization -> Product URL Suffix is empty. Go to Test Sub Category. Thanks. |
- Fixed static tests.
- added test data for fix
Preconditions (*)
Stores -> Configuration -> Catalog -> Catalog -> Search Engine Optimization -> Product URL Suffix
is empty.Stores -> Configuration -> Catalog -> Catalog -> Search Engine Optimization -> Category URL Suffix
is empty.Stores -> Configuration -> Catalog -> Catalog -> Search Engine Optimization -> Use Categories Path For Product URLs
is Yes.Stores -> Configuration -> Catalog -> Catalog -> Search Engine Optimization -> Generate "category/product" URL Rewrites
is No.Test Category
created under root category andTest Sub Category
created underTest Category
. There is a productTest
and it is assigned toTest Sub Category
. This is to make category url path have the product url path in it preceded by a forward slash (/). In this example the product url path is "test" andTest Sub Category
url path is "test-category/test-sub-category"Steps to reproduce (*)
Test Sub Category
.Test
.Expected result (*)
Actual result (*)
Looks like on line 173 in
\Magento\CatalogUrlRewrite\Model\Storage\DynamicStorage
functionstr_replace
should not be used. We fixed it on our installation by changing that line to this:Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
The text was updated successfully, but these errors were encountered: