Skip to content

Invisible products do not update url_rewrite properly #19293

Open
@dverkade

Description

@dverkade

Preconditions

  1. Magento 2.4-develop

Steps to reproduce

  1. Have a product in the Magento backoffice with the visibility "Not visible individually". Set the URL key of the product to "product-a"
  2. Open the product in de backoffice and change the URL Key to "product-b" and check the "create permanent redirect" checkbox
  3. Save the product.
  4. Open the product again, change the visibility of the product to "Catalog, search" and change the URL key to "product-c", check the "create permanent redirect" checkbox.
  5. Save the product again.

Expected result

  1. Permanent redirects should be present in the url rewrite database table from product-a to product-b
  2. Permanent redirects should be present in the url rewrite database table from product-b to product-c
  3. Expected result is that URL rewrite of products with "not individually visible" will also update.

Actual result (*)

  1. In the URL rewrite database table, only a references to product-c are available and permanent redirects from product-b to product-c are available.
  2. product-a is not redirecting to product-b
  3. URL rewrites for products which where once visible and now are not visible anymore are not being updated anymore and the old URL key which was present when the product was still visible is being kept in the URL rewrite table.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: ProductComponent: UrlRewriteIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: ready for devReported on 2.4.xIndicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions