{"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":"7ef8b707787230c3dddd8fe4cb5eb03cb386e9df943d9c3f3084efd90a295250","isBugfix":0.9826,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.96,"feature":0.0055,"refactor":0.0092,"tests_only":0.0084,"docs_only":0.0034,"dependency":0.0043,"cleanup":0.0092},"confidence":0.909},"scope":{"score":0.3156,"probabilities":{"0":0.7362,"1":0.212,"2":0.0518},"confidence":0.3844},"risk":{"score":0.1461,"probabilities":{"0":0.8767,"1":0.1006,"2":0.0227},"confidence":0.6688},"area":{"choice":"catalog","probabilities":{"catalog":0.7683,"checkout":0.0108,"customer":0.0094,"admin":0.0296,"graphql_api":0.0106,"framework":0.0262,"frontend":0.1053,"other":0.0398},"confidence":0.5484},"securityRelevant":0.0061,"reportedVersion":{"choice":"2.4.7-p3","probabilities":{"2.4.0":0.0024,"2.4.0-p1":0.0027,"2.4.1":0.0022,"2.4.1-p1":0.0024,"2.4.2":0.0022,"2.4.2-p1":0.0025,"2.4.2-p2":0.0025,"2.4.3":0.0025,"2.4.3-p1":0.0031,"2.4.3-p2":0.0033,"2.4.3-p3":0.0035,"2.4.4":0.0022,"2.4.4-p1":0.0026,"2.4.4-p10":0.0032,"2.4.4-p11":0.0034,"2.4.4-p12":0.0031,"2.4.4-p13":0.0033,"2.4.4-p14":0.0029,"2.4.4-p15":0.0028,"2.4.4-p16":0.0027,"2.4.4-p17":0.0028,"2.4.4-p18":0.0026,"2.4.4-p2":0.0023,"2.4.4-p3":0.0026,"2.4.4-p4":0.0023,"2.4.4-p5":0.0025,"2.4.4-p6":0.0027,"2.4.4-p7":0.0026,"2.4.4-p8":0.0027,"2.4.4-p9":0.0024,"2.4.5":0.0025,"2.4.5-p1":0.0027,"2.4.5-p10":0.0028,"2.4.5-p11":0.0029,"2.4.5-p12":0.0032,"2.4.5-p13":0.0033,"2.4.5-p14":0.0031,"2.4.5-p15":0.0028,"2.4.5-p16":0.003,"2.4.5-p17":0.0027,"2.4.5-p2":0.0026,"2.4.5-p3":0.0029,"2.4.5-p4":0.0026,"2.4.5-p5":0.0027,"2.4.5-p6":0.0027,"2.4.5-p7":0.0029,"2.4.5-p8":0.0027,"2.4.5-p9":0.0025,"2.4.6":0.0047,"2.4.6-p1":0.0047,"2.4.6-p10":0.0044,"2.4.6-p11":0.0042,"2.4.6-p12":0.004,"2.4.6-p13":0.0046,"2.4.6-p14":0.0035,"2.4.6-p15":0.0032,"2.4.6-p2":0.0027,"2.4.6-p3":0.0039,"2.4.6-p4":0.0035,"2.4.6-p5":0.0034,"2.4.6-p6":0.0031,"2.4.6-p7":0.0036,"2.4.6-p8":0.003,"2.4.6-p9":0.0026,"2.4.7":0.0334,"2.4.7-p1":0.0084,"2.4.7-p10":0.0033,"2.4.7-p2":0.0058,"2.4.7-p3":0.6728,"2.4.7-p4":0.0222,"2.4.7-p5":0.0071,"2.4.7-p6":0.0075,"2.4.7-p7":0.0051,"2.4.7-p8":0.0042,"2.4.7-p9":0.0041,"2.4.8":0.0048,"2.4.8-p1":0.0046,"2.4.8-p2":0.005,"2.4.8-p3":0.0048,"2.4.8-p4":0.0046,"2.4.8-p5":0.0043,"2.4.9":0.0044,"unspecified":0.0029},"confidence":0.4487},"backportWorthy":{"score":1.6053,"probabilities":{"0":0.081,"1":0.2326,"2":0.6864},"confidence":0.2976}},"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"}