You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you rename a category during an import, no 301 redirects are generated for the old links during the import. (we are using M2.1.7)
I did some debugging and found that the function reindexUpdatedCategories() in \FireGento\FastSimpleImport\Model\Import\Category tries to do very similiar things as an observer \Magento\CatalogUrlRewrite\Observer\CategoryProcessUrlRewriteMovingObserver M2 is using.
This way the functionality that M2 uses to generate 301 redirects between category renames is also applied for imports.
In the observer there is also a part that generates the category product urls but I fear this can create a significant increase in import time if that part would be added to the above code.
The text was updated successfully, but these errors were encountered:
As I mentioned in the previous post, I did some testing with the extra part for the category product url 301 redirects and the code is in fact needed to generate correct 301 redirects after changing a category url.
When you rename a category during an import, no 301 redirects are generated for the old links during the import. (we are using M2.1.7)
I did some debugging and found that the function reindexUpdatedCategories() in \FireGento\FastSimpleImport\Model\Import\Category tries to do very similiar things as an observer \Magento\CatalogUrlRewrite\Observer\CategoryProcessUrlRewriteMovingObserver M2 is using.
It is my opinion that
should become
This way the functionality that M2 uses to generate 301 redirects between category renames is also applied for imports.
In the observer there is also a part that generates the category product urls but I fear this can create a significant increase in import time if that part would be added to the above code.
The text was updated successfully, but these errors were encountered: