Magento2: Magento don't create product redirect if URL key on store view level was changed.

Created on 27 Jun 2017  路  5Comments  路  Source: magento/magento2

Preconditions

  1. Magento 2.1.6 with Sample data

Steps to reproduce

  1. Create store view with code "second" for Main Website
  2. Create new product with name "A" for Main Website (URL Key "a"). Here are product URLs from core_url_rewrite table:
    https://drive.google.com/file/d/0B__P_POF2b9aTHU0M21zVnJ2ZG8/view?usp=drivesdk
  3. Switch to "Default Store View" (store_id = 1 for me) and change URL Key to "b" then save product:
    https://drive.google.com/file/d/0B__P_POF2b9adHpDT1ZSUDRRRzg/view?usp=drivesdk

Expected result

  1. 301 redirect for "Default Store View" (ID#1) in core_url_rewrites table

Actual result

  1. 301 redirect missing
    https://drive.google.com/file/d/0B__P_POF2b9ael9MaWdZU0xGYVk/view?usp=drivesdk

But

If you change URL Key on "All Store View" level - 301 redirect will be created for "Second Store View" store, which haven't personal URL Key value.
https://drive.google.com/file/d/0B__P_POF2b9abTBJOWZlMEtuMVE/view?usp=drivesdk
Issue occurs if change URL Key on the Store View level.

CatalogUrlRewrite Fixed in 2.2.x Fixed in 2.3.x Confirmed Format is valid Ready for Work Reproduced on 2.1.x Reproduced on 2.2.x Reproduced on 2.3.x bug report

Most helpful comment

@magento-engcom-team that is not the fix, that is just an integration test. Could you refer us to the actual commit that fixes it?

All 5 comments

@sergei-sss Thanks for reporting this issue. We've created internal ticket MAGETWO-70447 to address this issue.

@sergei-sss, thank you for your report.
We've created internal ticket(s) MAGETWO-80451 to track progress on the issue.

Hi @sergei-sss. Thank you for your report.
The issue has been fixed in magento/magento2#13567 by @adrien-louis-r in 2.2-develop branch
Related commit(s):

The fix will be available with the upcoming 2.2.4 release.

Hi @sergei-sss. Thank you for your report.
The issue has been fixed in magento/magento2#14252 by @rostyslav-hymon in 2.3-develop branch
Related commit(s):

The fix will be available with the upcoming 2.3.0 release.

@magento-engcom-team that is not the fix, that is just an integration test. Could you refer us to the actual commit that fixes it?

Was this page helpful?
0 / 5 - 0 ratings