Skip to content
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

After import products categoty URL rewrites removes automatic #8786

Closed
adoardo opened this issue Mar 3, 2017 · 8 comments
Closed

After import products categoty URL rewrites removes automatic #8786

adoardo opened this issue Mar 3, 2017 · 8 comments
Labels
Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed Progress: needs update

Comments

@adoardo
Copy link

adoardo commented Mar 3, 2017

  1. I have Magento CE 2.1.
  2. "Use Categories Path for Product URLs" is enabled.
  3. "Create Permanent Redirect for URLs if URL Key Changed" is enabled.
  4. If i save category from admin page manually, url rewrites works. But if i import products after this i still have this issue.
  5. As i understood problem with "Magento\CatalogUrlRewrite\Observer\AfterImportDataObserver" observer because there is no basc functionality to add new category rewrites. But i dont understand why this observer removes exiting category rewrites.
@hostep
Copy link
Contributor

hostep commented Mar 4, 2017

Ah yes, I've seen this behavior as well in the past during category/product imports.
We work around it by re-inserting url rewrites after the import using some custom code, but during the import certain url rewrites are being removed, so people browsing the webshop during an import will see non-seo friendly url's popping up here and there.

If I remember correctly, this only seemed to happen when we do a product import where we only import stock qty and prices. We don't import a name or url_key, since it already exists in Magento. I think the lack of those attributes in the import data, might have something to do with this problem.

Would be great if Magento can look into this, because disappearing url rewrites aren't very fun to deal with.

hostep referenced this issue Jun 13, 2017
[Troll] MAGETWO-67087: Saving category deletes url-rewrites for products in anchor categories
@andidhouse
Copy link

@hostep not really shure what the logic is on handling bugs from magento side. If you browse GitHub or even google for the "Magento2 URL Rewrite bug" you find hundreds of posts and problems. Right now also this issue was posted far more then one year ago here - nothing happened from magento side. The bug is still present and there is no reaction from magento side but creating pull requests or creating internal tickets. Is this really how you handle bugs? wow...

@christian-forgacs
Copy link

PUSH!

@magento-engcom-team magento-engcom-team added the Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed label Sep 11, 2017
@magento-engcom-team
Copy link
Contributor

magento-engcom-team commented Nov 10, 2017

@adoardo , thank you for your report.
Please provide more detailed steps to reproduce or try to reproduce this issue on a clean installation or latest release.
Please, add the following information:

  • Magento version
  • Steps to reproduce
  • Expected result
  • Actual result

@magento-engcom-team
Copy link
Contributor

@adoardo, we are closing this issue due to inactivity. If you'd like to update it, please reopen the issue.

@rigroweb
Copy link

This is definetely still an issue and can be easily reproduced. please reopen.

@hostep
Copy link
Contributor

hostep commented Jun 25, 2020

@rigroweb: it might be better to open a new issue detailing exact steps to reproduce, commenting on old already-closed issues usually has no effect (especially since most contributors - like myself - no longer have the rights to re-open issues for some reason)

@rigroweb
Copy link

rigroweb commented Jun 25, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed Progress: needs update
Projects
None yet
Development

No branches or pull requests

6 participants