-
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
Fix generating product URL rewrites for anchor categories #14344
Fix generating product URL rewrites for anchor categories #14344
Conversation
|
Hi @mszydlo, thank you for creating the new PR! Please can you have a look at the CLA comment? |
Note: CLA check is green now. |
Hi @mszydlo, here are my results from testing with the steps described in #11615: If categories have been created before applying the patch and the product is created after applying the patch, everything works fine. If categories and the product have been created before applying the patch, then:
Can you confirm this? I think that we need to solve these problems. Otherwise existing stores continue they travel down the rewrite URL entries hell. A call to |
Hi @mszydlo & @mzeis: thank for working on this issue, really appreciate it! @mzeis: I think you are confusing Magento 1 and Magento 2. In Magento 1 the url rewrites are generated by the indexer, but in Magento 2 they are not (there just isn't an easy way to regenerate them without doing funky stuff) I can see your point though, so maybe Magento should add a command in Btw: the new problem you are reporting also sounds a lot like #11616, but I'm not sure if it is exactly the same? |
Wow yes, you are absolutely right. Sorry about that, not sure where my mind was.
Sounds similar but we'll have to investigate whether the cause is the same. I'll try find out what the take of the core team is regarding URL rewriting and its problems. |
That would be very much appreciated, the url rewrite problems have existed since Magento 2.0.0 and have been driving me crazy ever since and I haven't seen any interest from the core Magento team in resolving them, which is insane. It's in my top 3 list of issues which should be tackled as soon as possible, but I don't know how to communicate these priorities to the core team... |
@hostep Here is what I found out for now:
I don't know specifics but I'll keep you updated if I hear more. |
Thanks for the feedback @mzeis! I think the PR can be processed further. It should at least fix a small portion of the problem. |
@hostep Thanks for your input! We're discussing how to proceed. |
Hi @mszydlo and @hostep, a quick update on this PR: the product team has to measure the impact of this change before we can continue processing this PR. Considerations are:
I hope you understand that while the original bug is important to fix, we have to be cautious with the next steps. If somebody uses this PRs changes for their stores I would value feedback on their impact in the meanwhile. |
@mzeis we're using this fix for now on one of our stores. Will report funky issues, if any, here. |
Hi @mzeis: would you already have an update from the core team around this issue? I agree about the cautiousness, it might be a good idea to have a new @peterjaap: have you noticed any funkyness yet by applying this fix? |
@hostep not yet no. |
Hi @hostep, I'm on vacation currently but didn't hear about updates yet. I will try to get one for you when I am back. |
Hi @hostep, I contacted the team and they will look into what's the current state. |
Hi @mzeis , do you have any updates on this pull request? |
Hi @sivaschenko! The last time I asked CET, internal work (by the core team) was being done on this but it was said to be a complicate issue. Maybe JIRA could tell more about the current state? |
@mzeis do you have any ticket number or contacts to follow up? |
✔️ QA Passed |
This pull request will be processed after #20826 is merged to 2.3-develop |
Hi @mszydlo. The branch |
@VladimirZaets: you've got to be kidding right? This PR is open since the beginning of 2018 (before 2.3-develop was even a thing), you guys have been stalling and stalling and stalling this issue for whatever reason, and now you come to mention something like this, like wth? 😛 |
@hostep so true. It would make much more sense to go over 2.3 PRs first in order to try push them forward instead of adding automated message without checking. |
Hi @mszydlo, thank you for your contribution! |
2.3-develop PR #20826
Description
During product URL rewrite generation anchor categories were loaded with no store ID specified resulting with default url key being read from the DB.
Fixed Issues
Manual testing scenarios
Test scenario is well described in the linked issue
The same fix for 2.3-develop: #20826