-
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
URL rewrites are not being generated when Single-Store Mode is enabled #25190
Comments
Hi @paul-blundell. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. @paul-blundell do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
@magento give me 2.3-develop instance |
Hi @paul-blundell. Thank you for your request. I'm working on Magento 2.3-develop instance for you |
Hi @paul-blundell, here is your Magento instance. |
I have been able to reproduce on the fresh instance of the develop branch. See my updated description for steps on how to reproduce. I believe there is an underlying issue with Single-Store mode and others have reported similar issues: #5929 |
Hi @engcom-Delta. Thank you for working on this issue.
|
Hi @paul-blundell thank you for your report. Unfortunately, I am not able to reproduce issue by steps you described on clean 2.3-develop. If you'd like to update the issue, please reopen it. |
@engcom-Delta Did you do step 4? With Single-Store mode set to No, did you change the scope to the store view, then edit & save the product. This is the critical step to reproducing this. |
@paul-blundell I did step 4. But I didn't experience issue with generating URL keys. Tested with Enable Single-Store Mode=No and Enable Single-Store Mode=Yes. |
I have same problem on magento 2.3.3 release. Additionally when I changed auto generated url key, its add new record for url key |
Please check this link for a workaround. |
This is happening to me in 2.3.3 release as well. Quite unfortunate this bug with single store mode has gone on for years without resolution. |
\Magento\Catalog\Model\Product::getStoreIds() this is the method were things go south. It still happens on 2.2.3 |
Can confirm @victortodoran 's comment
When creating a new product with single-store mode enabled, $this->getWebsiteIds() returns an array [ 0 => "1" ], containing the main store as expected Magento\CatalogUrlRewrite\Model\ProductScopeRewriteGenerator::generateForGlobalScope doesn't generate rewrites this way, since the only store_id it gains is the global scope:
Commenting out the lines |
I have experienced same issue in Magento 2.3.3 commenting the above line as mentioned by @MatthijsBreed resolved the issue for me. Thanks |
Preconditions (*)
Steps to reproduce
Expected result
New URL key should be in the database table
Actual result
Nothing is updated in the database
Once I disable the Single-Store mode and repeat the steps. It works perfectly and the url_rewrite table is updated as soon as I save.
There seems to be an issue if you enable Single-Store mode after previously using multi-store mode and override values on a store level.
The text was updated successfully, but these errors were encountered: