{"data":{"id":"magento2-39710","source":"github-pr","sourceRef":"magento/magento2#39710","title":"Catalog link widgets uses incorrect URL","pr":{"number":39710,"url":"https://github.com/magento/magento2/pull/39710","author":"rikwillems","mergedAt":"2025-05-20T18:19:52Z","mergeCommit":"af53fe066f5a8f89e9970ce56d6c006c21bdafa4","headCommit":"39c6c47b89698418ab205b9677657c74327e6a41","baseRef":"2.4-develop","diffSha256":"8260f8a91795e9aa7472a3a34bc72304b1167c6d567bc1cba33e630dbd0190c2"},"issues":[{"number":39464,"url":"https://github.com/magento/magento2/issues/39464","title":"Catalog link widgets uses incorrect URL","labels":["Area: Content / CMS","Component: Widget","Issue: Confirmed","Priority: P2","Progress: done","Reported on 2.4.7-p3","Reproduced on 2.4.x"],"kind":"human"}],"fixedIn":"2.4.9","containingTags":["2.4.9"],"reportedOn":"2.4.7-p3","codeMatch":{"2.4.6":"clean","2.4.6-p1":"clean","2.4.6-p2":"clean","2.4.6-p3":"clean","2.4.6-p4":"clean","2.4.6-p5":"clean","2.4.6-p6":"clean","2.4.6-p7":"clean","2.4.6-p8":"clean","2.4.6-p9":"clean","2.4.6-p10":"clean","2.4.6-p11":"clean","2.4.6-p12":"clean","2.4.6-p13":"clean","2.4.6-p14":"clean","2.4.6-p15":"clean","2.4.7":"clean","2.4.7-p1":"clean","2.4.7-p2":"clean","2.4.7-p3":"clean","2.4.7-p4":"clean","2.4.7-p5":"clean","2.4.7-p6":"clean","2.4.7-p7":"clean","2.4.7-p8":"clean","2.4.7-p9":"clean","2.4.7-p10":"clean","2.4.8":"clean","2.4.8-p1":"clean","2.4.8-p2":"clean","2.4.8-p3":"clean","2.4.8-p4":"clean","2.4.8-p5":"clean","2.4.9":"conflict"},"affectedVersions":["2.4.6","2.4.6-p1","2.4.6-p2","2.4.6-p3","2.4.6-p4","2.4.6-p5","2.4.6-p6","2.4.6-p7","2.4.6-p8","2.4.6-p9","2.4.6-p10","2.4.6-p11","2.4.6-p12","2.4.6-p13","2.4.6-p14","2.4.6-p15","2.4.7","2.4.7-p1","2.4.7-p2","2.4.7-p3","2.4.7-p4","2.4.7-p5","2.4.7-p6","2.4.7-p7","2.4.7-p8","2.4.7-p9","2.4.7-p10","2.4.8","2.4.8-p1","2.4.8-p2","2.4.8-p3","2.4.8-p4","2.4.8-p5"],"components":["magento/module-catalog"],"files":[{"path":"app/code/Magento/Catalog/Block/Widget/Link.php","change":"modified","package":"magento/module-catalog"}],"stripped":{"tests":["app/code/Magento/Catalog/Test/Unit/Block/Widget/LinkTest.php"],"docs":[],"outsideCode":[]},"linesChanged":1,"mergeBatched":false,"excluded":null,"sections":{"description":"Links go to the URL that was first inserted into `url_rewrite`, which now has `redirect_type` 301.","stepsToReproduce":"1) Multistore setup\n2) Add categories and products\n3) Change the url key of a product and category for a store view\n4) Add a catalog category link and category product link widget to a page, linked to the category/product in step (3)","expectedResult":"Links in the widget go to the correct url of the selected product/category.","actualResult":"Links go to the URL that was first inserted into `url_rewrite`, which now has `redirect_type` 301.","source":"issue"},"signatures":[],"labels":{"area":["Content / CMS"],"component":["Widget"],"priority":"P2","severity":null,"reportedOn":["2.4.7-p3"]},"categories":["Content"],"triage":{"model":"@cf/cloudflare/clef","requestHash":"a1ad9a7818e0a902f00819b59847a91961a4ccfb3a3557e535642b8cb0f77598","isBugfix":0.9831,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.9679,"feature":0.0053,"refactor":0.01,"tests_only":0.0086,"docs_only":0.0037,"dependency":0.0045},"confidence":0.9245},"scope":{"score":0.3109,"probabilities":{"0":0.7393,"1":0.2104,"2":0.0503},"confidence":0.3901},"risk":{"score":0.1371,"probabilities":{"0":0.8847,"1":0.0935,"2":0.0218},"confidence":0.6879},"area":{"choice":"catalog","probabilities":{"catalog":0.7787,"checkout":0.0105,"customer":0.0094,"admin":0.0274,"graphql_api":0.0104,"framework":0.0264,"frontend":0.099,"other":0.0382},"confidence":0.565},"securityRelevant":0.0061,"reportedVersion":{"choice":"2.4.7-p3","probabilities":{"2.4.0":0.0023,"2.4.0-p1":0.0025,"2.4.1":0.0021,"2.4.1-p1":0.0023,"2.4.2":0.0021,"2.4.2-p1":0.0024,"2.4.2-p2":0.0025,"2.4.3":0.0023,"2.4.3-p1":0.0029,"2.4.3-p2":0.003,"2.4.3-p3":0.0033,"2.4.4":0.0021,"2.4.4-p1":0.0025,"2.4.4-p10":0.0033,"2.4.4-p11":0.0031,"2.4.4-p12":0.0029,"2.4.4-p13":0.0032,"2.4.4-p14":0.0027,"2.4.4-p15":0.0027,"2.4.4-p16":0.0028,"2.4.4-p17":0.0028,"2.4.4-p18":0.0024,"2.4.4-p2":0.0022,"2.4.4-p3":0.0025,"2.4.4-p4":0.0022,"2.4.4-p5":0.0024,"2.4.4-p6":0.0027,"2.4.4-p7":0.0027,"2.4.4-p8":0.0027,"2.4.4-p9":0.0024,"2.4.5":0.0024,"2.4.5-p1":0.0025,"2.4.5-p10":0.0026,"2.4.5-p11":0.0027,"2.4.5-p12":0.0032,"2.4.5-p13":0.003,"2.4.5-p14":0.003,"2.4.5-p15":0.0026,"2.4.5-p16":0.0028,"2.4.5-p17":0.0026,"2.4.5-p2":0.0025,"2.4.5-p3":0.0028,"2.4.5-p4":0.0026,"2.4.5-p5":0.0026,"2.4.5-p6":0.0031,"2.4.5-p7":0.003,"2.4.5-p8":0.0027,"2.4.5-p9":0.0023,"2.4.6":0.0052,"2.4.6-p1":0.0045,"2.4.6-p10":0.0043,"2.4.6-p11":0.0041,"2.4.6-p12":0.0041,"2.4.6-p13":0.0045,"2.4.6-p14":0.0034,"2.4.6-p15":0.0034,"2.4.6-p2":0.0026,"2.4.6-p3":0.0037,"2.4.6-p4":0.0033,"2.4.6-p5":0.0033,"2.4.6-p6":0.0032,"2.4.6-p7":0.0035,"2.4.6-p8":0.0027,"2.4.6-p9":0.0024,"2.4.7":0.053,"2.4.7-p1":0.0085,"2.4.7-p10":0.0034,"2.4.7-p2":0.007,"2.4.7-p3":0.6544,"2.4.7-p4":0.0243,"2.4.7-p5":0.0077,"2.4.7-p6":0.0083,"2.4.7-p7":0.0055,"2.4.7-p8":0.0047,"2.4.7-p9":0.0042,"2.4.8":0.0043,"2.4.8-p1":0.0043,"2.4.8-p2":0.0049,"2.4.8-p3":0.0053,"2.4.8-p4":0.0041,"2.4.8-p5":0.0039,"2.4.9":0.0042,"unspecified":0.0028},"confidence":0.4257},"backportWorthy":{"score":1.5998,"probabilities":{"0":0.0812,"1":0.2378,"2":0.681},"confidence":0.2903}},"curated":{"title":"Catalog link widget points to the old URL after a url_key change","description":"After the url key of a product or category changes for a store view, catalog category link and product link widgets point to the first url_rewrite, which now has redirect_type 301. The filter in the widget Link block now has the redirect type parameter set to 0.","categories":["Content"],"author":"claude-code/opus-5.5","date":"2026-10-06","reviewedBy":null},"tests":{"2.4.8-p5":{"before":"fail","after":"pass","adapted":false,"runAt":"2026-10-06T09:20:12.988Z","releaseCommit":"870a22c63d9d9b68fa3297962e2d5d5841115814","suites":{"unit":{"before":"fail","after":"pass","runAt":"2026-10-06T09:20:12.988Z"}}},"2.4.7-p10":{"before":"fail","after":"pass","adapted":false,"runAt":"2026-10-06T09:29:28.374Z","releaseCommit":"72561bf80652f57cc642a03e2c9a51d74a285b14","suites":{"unit":{"before":"fail","after":"pass","runAt":"2026-10-06T09:29:28.374Z"}}}}},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-39710 details"}