{"data":{"id":"magento2-40412","source":"github-pr","sourceRef":"magento/magento2#40412","title":"Meta tags auto generation: variables cannot be used multiple times","pr":{"number":40412,"url":"https://github.com/magento/magento2/pull/40412","author":"MaximLogic","mergedAt":"2026-02-10T16:48:17Z","mergeCommit":"37a25f09ac0c678dc5c31395466b8c972a3e1c35","headCommit":"5936e108170a764e4123a99363589635a0287ff7","baseRef":"2.4-develop","diffSha256":"a6167dbafadb2a84f38cfea50dbf86f1e64a323ad22da2395f50c398b074facc"},"issues":[{"number":35670,"url":"https://github.com/magento/magento2/issues/35670","title":"Meta tags auto generation: variables cannot be used multiple times","labels":["Area: Catalog","Component: Catalog","Issue: Confirmed","Priority: P2","Progress: PR Created","Progress: done","Reproduced on 2.4.x"],"kind":"human"}],"fixedIn":"2.4.9","containingTags":["2.4.9"],"reportedOn":"2.4.2","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/view/adminhtml/web/js/components/import-handler.js","change":"modified","package":"magento/module-catalog"}],"stripped":{"tests":[],"docs":[],"outsideCode":[]},"linesChanged":2,"mergeBatched":false,"excluded":null,"sections":{"description":"The meta keywords are set to `NEW PRODUCT, order {{name}}` .\nSo the second occurrence is not replaced as expected.","stepsToReproduce":"1. Execute `bin/magento config:set catalog/fields_masks/meta_keyword '{{name}}, order {{name}}'` or set manually\n2. Login to Magento2 Backend\n3. Create a new product\n4. Set product name to \"NEW PRODUCT\"\n5. Check meta keywords","expectedResult":"The meta keywords should be set to `NEW PRODUCT, order NEW PRODUCT`","actualResult":"The meta keywords are set to `NEW PRODUCT, order {{name}}` .\nSo the second occurrence is not replaced as expected.","source":"issue"},"signatures":[],"labels":{"area":["Catalog"],"component":["Catalog"],"priority":"P2","severity":null,"reportedOn":[]},"categories":["Catalog/Product"],"triage":{"model":"@cf/cloudflare/clef","requestHash":"4241277f912da18a5435ee1a34b7b349469b71c728c9c2e49e9d951e0ffa5bb6","isBugfix":0.9815,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.9659,"feature":0.0048,"refactor":0.014,"tests_only":0.0034,"docs_only":0.0027,"dependency":0.0026,"cleanup":0.0066},"confidence":0.9221},"scope":{"score":0.1835,"probabilities":{"0":0.859,"1":0.0985,"2":0.0425},"confidence":0.6241},"risk":{"score":0.2751,"probabilities":{"0":0.744,"1":0.2369,"2":0.0191},"confidence":0.4151},"area":{"choice":"catalog","probabilities":{"catalog":0.5135,"checkout":0.0039,"customer":0.0034,"admin":0.406,"graphql_api":0.0028,"framework":0.0093,"frontend":0.0533,"other":0.0078},"confidence":0.3504},"securityRelevant":0.0066,"reportedVersion":{"choice":"2.4.2","probabilities":{"2.4.0":0.0059,"2.4.0-p1":0.0037,"2.4.1":0.0052,"2.4.1-p1":0.0044,"2.4.2":0.5675,"2.4.2-p1":0.0132,"2.4.2-p2":0.0424,"2.4.3":0.0076,"2.4.3-p1":0.006,"2.4.3-p2":0.009,"2.4.3-p3":0.006,"2.4.4":0.0049,"2.4.4-p1":0.0041,"2.4.4-p10":0.0032,"2.4.4-p11":0.0045,"2.4.4-p12":0.0047,"2.4.4-p13":0.0044,"2.4.4-p14":0.0051,"2.4.4-p15":0.004,"2.4.4-p16":0.004,"2.4.4-p17":0.0036,"2.4.4-p18":0.003,"2.4.4-p2":0.003,"2.4.4-p3":0.0026,"2.4.4-p4":0.004,"2.4.4-p5":0.0033,"2.4.4-p6":0.0033,"2.4.4-p7":0.003,"2.4.4-p8":0.0034,"2.4.4-p9":0.0029,"2.4.5":0.0032,"2.4.5-p1":0.0038,"2.4.5-p10":0.0027,"2.4.5-p11":0.0035,"2.4.5-p12":0.0043,"2.4.5-p13":0.0035,"2.4.5-p14":0.0052,"2.4.5-p15":0.0031,"2.4.5-p16":0.0025,"2.4.5-p17":0.0036,"2.4.5-p2":0.0026,"2.4.5-p3":0.0027,"2.4.5-p4":0.0041,"2.4.5-p5":0.0035,"2.4.5-p6":0.0033,"2.4.5-p7":0.0031,"2.4.5-p8":0.0026,"2.4.5-p9":0.002,"2.4.6":0.0031,"2.4.6-p1":0.0042,"2.4.6-p10":0.0032,"2.4.6-p11":0.0034,"2.4.6-p12":0.0046,"2.4.6-p13":0.0037,"2.4.6-p14":0.0049,"2.4.6-p15":0.003,"2.4.6-p2":0.0028,"2.4.6-p3":0.0037,"2.4.6-p4":0.0045,"2.4.6-p5":0.0037,"2.4.6-p6":0.0035,"2.4.6-p7":0.0035,"2.4.6-p8":0.0035,"2.4.6-p9":0.0025,"2.4.7":0.0028,"2.4.7-p1":0.0034,"2.4.7-p10":0.0032,"2.4.7-p2":0.0041,"2.4.7-p3":0.0044,"2.4.7-p4":0.0073,"2.4.7-p5":0.0073,"2.4.7-p6":0.0078,"2.4.7-p7":0.0051,"2.4.7-p8":0.0041,"2.4.7-p9":0.0026,"2.4.8":0.0032,"2.4.8-p1":0.0042,"2.4.8-p2":0.0065,"2.4.8-p3":0.0074,"2.4.8-p4":0.0086,"2.4.8-p5":0.0069,"2.4.9":0.0049,"unspecified":0.0472},"confidence":0.3196},"backportWorthy":{"score":1.3361,"probabilities":{"0":0.1931,"1":0.2777,"2":0.5292},"confidence":0.0917}},"curated":{"title":"Fixes meta tag masks that repeat the same placeholder, such as {{name}} twice","description":"In the admin product form, when a field mask contains the same placeholder multiple times, only the first occurrence was replaced, so {{name}}, order {{name}} kept a raw {{name}}. The fix in import-handler.js replaces all occurrences of the placeholder.","categories":["Catalog/Product"],"author":"claude-code/opus-5.5","date":"2026-10-06","reviewedBy":null},"tests":null},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-40412 details"}