Skip to content

Catalog link widgets uses incorrect URL #39464

Closed
@rikwillems

Description

@rikwillems

Preconditions and environment

Version tested 2.4.7-p3

Steps to reproduce

  1. Multistore setup
  2. Add categories and products
  3. Change the url key of a product and category for a store view
  4. 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”.

Metadata

Metadata

Assignees

Labels

Issue: needs updateAdditional information is require, waiting for responseReported on 2.4.7-p3Indicates original Magento version for the Issue report.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions