Closed LouNik1984 closed 5 years ago
Just to add:
I also tried to enable the store codes so maybe this would help the rewrite procedure but it doesn't do anything: the store code is correctly added to the url, but the url itself doesn't change, so now correct urls are like "www.domain.com/code/url-of-the-product.html" while wrong urls are like "www.domain.com/code/catalog/product/view/id/1713/s/product-url-key/category/6/"
Hi @LouNik1984 When i flush cache in admin (system-> cache management) urls was right, however the error in cli it not right, and the fix for this issue is already available in the 2.3-develop branch, so we've acknowledged the issue and added to our backlog.
@engcom-backlog-nazar May I know the number of change list in 2.3-develop?
Hi @engcom-backlog-nazar. Thank you for working on this issue. Looks like this issue is already verified and confirmed. But if your want to validate it one more time, please, go though the following instruction:
[ ] 1. Add/Edit Component: XXXXX
label(s) to the ticket, indicating the components it may be related to.
[ ] 2. Verify that the issue is reproducible on 2.3-develop
branchDetails
- Add the comment @magento-engcom-team give me 2.3-develop instance
to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.3-develop
branch, please, add the label Reproduced on 2.3.x
.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
[ ] 3. Verify that the issue is reproducible on 2.2-develop
branch. Details
- Add the comment @magento-engcom-team give me 2.2-develop instance
to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.2-develop
branch, please add the label Reproduced on 2.2.x
[ ] 4. If the issue is not relevant or is not reproducible any more, feel free to close it.
Hi @LouNik1984 The issue was re-tested and we can confirm that it was fixed on the 2.3 release branch. We closing this issue as fixed due to upcoming 2.3 release that will be available soon.
I am still facing this issue for categories on Magento 2.3.1. Categories URLs are generated correctly for the default store but not for the new store.
Yeah I'm still seeing this on 2.3.1 too, kind of.
If I create the category in the admin then the URL Rewrites are generated correctly.
However if I create the category programmatically, then the rewrite is only generated for the default store view, and the other store views have .../view/id/... style URL.
I wonder if its an error in my code? Do I need to trigger the generation of rewrites? Shouldn't creating the category be enough?
$category = $this->_objectManager->get('\Magento\Catalog\Model\CategoryFactory')->create();
$category->setName($name);
$category->setParentId($parent_id);
$category->setIsActive(true);
$this->_objectManager->get('\Magento\CatalogApi\CategoryRepositoryInterface')->save($category);
I also see this issue in 2.3.2 with programmatically created products (via CLI script), only the default store view has an seo-friendly product url. Did you find the correct modification to your script? It's wasteful of resources, but you might have to foreach over your storeviews, setStoreId($storeviewid), and repeatedly save your category?
Kind of a workaround but I ended up using olegkoval/magento2-regenerate-url-rewrites to fix the issues.
same for me , this is issue is still here on 2.3.2 version
I can confirm olegkoval/magento2-regenerate-url-rewrites sorted it for me too, obviously I have to schedule the running of that, but I found running it against products for a whole store-view cleaned it up straight away.
Still having the same problem on Magento 2.3.4
I can confirm this is still an issue on 2.3.4
confirm still an issue.
confirm also ... still the issue ! how is it possible to have a so major bug not solved since a SO LONG TIME ????
Confirmed this is still an issue....how is possible since so long time still a bug?
Summary
Magento 2.2.2 with one website, one store and 2 store views. On frontend:
Preconditions
Steps to reproduce
Expected result
Actual result
Clean and flush cache + reindexing from cli does not help, issue persists.
I also tried to revert back product url suffix to default. At first glance it didn't do any change but if I save the product manually, the url gets correctly rewritten. What I mean by manually is:
Note: I don't care much about the checkboxes but I'm concerned about the url situation. We cannot go online with the website until the product urls are ok so this is really a big big issue.