Open
Description
Preconditions
- Magento 2.4-develop
Steps to reproduce
- Have a product in the Magento backoffice with the visibility "Not visible individually". Set the URL key of the product to "product-a"
- Open the product in de backoffice and change the URL Key to "product-b" and check the "create permanent redirect" checkbox
- Save the product.
- 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.
- Save the product again.
Expected result
- Permanent redirects should be present in the url rewrite database table from product-a to product-b
- Permanent redirects should be present in the url rewrite database table from product-b to product-c
- Expected result is that URL rewrite of products with "not individually visible" will also update.
Actual result (*)
- 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.
- product-a is not redirecting to product-b
- 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.