-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Catalog link widgets uses incorrect URL #39464
Comments
Hi @rikwillems. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
You can use the following patch to work around the issue.
|
Hi @engcom-Bravo. Thank you for working on this issue.
|
Hi @rikwillems, Thanks for your reporting and collaboration. We have verified the issue in Latest 2.4-develop instance and we are not able to reproduce the issue.Kindly refer the screenshots. Links in the widget going to the correct url of the selected product/category. Kindly recheck the issue in Latest 2.4-develop instance and elaborate the steps to reproduce the issue if the issue is still reproducible. Thanks. |
@engcom-Bravo Could you be so kind and recheck the issue? The results are right, as your screenshot shows. But, you get to that URL because of a 301 redirect that is generated. The actual link on the page that is created by the widget is the original, not the correct new URL. |
Hi @rikwillems, Thanks for your update. We have tried to reproduce the issue in Latest 2.4-develop instance and results were the same.Could you please provide screencast or screenshots if possible to proceed further. Thanks. |
Preconditions and environment
Version tested 2.4.7-p3
Steps to reproduce
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 hasredirect_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
The text was updated successfully, but these errors were encountered: