Skip to content

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

@sergei-sss

Description

@sergei-sss

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: CatalogUrlRewriteFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releasebug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions