Closed
Description
Preconditions and environment
Version tested 2.4.7-p3
Steps to reproduce
- Multistore setup
- Add categories and products
- Change the url key of a product and category for a store view
- Add a catalog category link and category product link widget to a page, linked to the category/product in step (3)
Expected result
Links in the widget go to the correct url of the selected product/category.
Actual result
Links go to the URL that was first inserted into url_rewrite
, which now has redirect_type
301.
Additional information
The filter to retrieve the url rewrite misses the redirect type parameter. Adding that to the filter leads to the expected result.
\Magento\Catalog\Block\Widget\Link line 80.
Althought the links work, through a redirect you get to the correct page, the link in html source is invalid. This can have an SEO impact for the merchant.
Release note
No response
Triage and priority
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.