magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.56k stars 9.32k forks source link

Module Catalog Url Rewrite: Permanent Redirect for old URL is missed when product was imported #20282

Closed ghost closed 5 years ago

ghost commented 5 years ago

Preconditions (*)

  1. Magento 2.2.7

Steps to reproduce (*)

  1. Export some visible product via System-> Data Transfer-> Export.
  2. Change 'url-key' for this product in CSV file.
  3. Import this product via System-> Data Transfer-> Import.

Expected result (*)

  1. When you try to open the changed product by the old URL key you are redirected to the new URL.

Actual result (*)

  1. When you try to open the changed product by the old URL key you receive 404-page.
magento-engcom-team commented 5 years ago

Hi @olegAleksin. Thank you for your report. To help us process this issue please make sure that you provided the following information:

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:

@magento-engcom-team give me $VERSION instance

where $VERSION is version tags (starting from 2.2.0+) or develop branches (for example: 2.3-develop). For more details, please, review the Magento Contributor Assistant documentation.

@olegAleksin do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?

magento-engcom-team commented 5 years ago

Hi @shikhamis11. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

shikhamis11 commented 5 years ago

@magento-engcom-team give me 2.2-develop instance

magento-engcom-team commented 5 years ago

Hi @shikhamis11. Thank you for your request. I'm working on Magento 2.2-develop instance for you

magento-engcom-team commented 5 years ago

Hi @shikhamis11, here is your Magento instance. Admin access: https://i-20282-2-2-develop.instances.magento-community.engineering/admin Login: admin Password: 123123q Instance will be terminated in up to 3 hours.

shikhamis11 commented 5 years ago

@olegAleksin did you tried reindexing after changing url key ??

ghost commented 5 years ago

@shikhamis11 Yes, I did

oleksandr-butenko commented 5 years ago

@olegAleksin did you tried reindexing after changing url key ??

URL rewrites are not created during to reindex. URL rewrites are created during saving product or import process.

So if you imported a new file, but URL rewrites are not correct - no need to wait for indexes. You better check your file, products and Marketing > SEO & Search > URL Rewrite page.

shikhamis11 commented 5 years ago

@olegAleksin yes url rewrites are created during saving product .

magento-engcom-team commented 5 years ago

@shikhamis11 Thank you for verifying the issue. Based on the provided information internal tickets MAGETWO-97622 were created

nadim2jcommerce commented 5 years ago

Hi @olegAleksin,

This is not an issue. Also not indexing issue. You should add url redirect in Admin for this. Redirection old url to New url Magento Admin=>Marketing=>Seo and Search=>URL Rewrites.

Thanks! Nadim

eduard13 commented 5 years ago

@magento-engcom-team give me 2.2-develop instance

magento-engcom-team commented 5 years ago

Hi @eduard13. Thank you for your request. I'm working on Magento 2.2-develop instance for you

magento-engcom-team commented 5 years ago

Hi @olegAleksin. Thank you for your report. The issue has been fixed in magento/magento2#20344 by @ankur-cedcoss in 2.3-develop branch Related commit(s):

The fix will be available with the upcoming 2.3.1 release.

sidolov commented 5 years ago

Hi @olegAleksin. Thank you for your report. The issue has been fixed in magento/magento2#20737 by @shikhamis11 in 2.2-develop branch Related commit(s):

The fix will be available with the upcoming 2.2.9 release.