{"data":{"id":"magento2-40481","source":"github-pr","sourceRef":"magento/magento2#40481","title":"Error Message is not rendered for GET request","pr":{"number":40481,"url":"https://github.com/magento/magento2/pull/40481","author":"rogerdz","mergedAt":"2026-04-07T08:58:31Z","mergeCommit":"4c220fadfd9f71c876c11141df56e2d0e3aad34f","headCommit":"ce13fd6500671dbf57e4b8daea6d976b0286b517","baseRef":"2.4-develop","diffSha256":"5e716d25e05bd624cb072560004462e9e55382c3a9964db7372c2d459fe8075a"},"issues":[{"number":40411,"url":"https://github.com/magento/magento2/issues/40411","title":"Error Message is not rendered for GET request","labels":["Area: SEO / Metadata","Component: Url","Issue: Confirmed","Priority: P2","Progress: PR Created","Progress: done","Reported on 2.4.8-p3","Reproduced on 2.4.x"],"kind":"human"}],"fixedIn":"2.4.9","containingTags":["2.4.9"],"reportedOn":"2.4.8-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-store"],"files":[{"path":"app/code/Magento/Store/Controller/Store/SwitchAction.php","change":"modified","package":"magento/module-store"}],"stripped":{"tests":[],"docs":[],"outsideCode":[]},"linesChanged":15,"mergeBatched":false,"excluded":null,"sections":{"description":"- No error message is displayed immediately\n- If you add any product to the cart (or run any other POST request), only then the \"wrong store\" error message appear","stepsToReproduce":"1. Open MAGENTO.URL/stores/store/switchaction","expectedResult":"- \"The store that was requested wasn't found. Verify the store and try again.\" error message is displayed immediatelly","actualResult":"- No error message is displayed immediately\n- If you add any product to the cart (or run any other POST request), only then the \"wrong store\" error message appear","source":"issue"},"signatures":[],"labels":{"area":["SEO / Metadata"],"component":["Url"],"priority":"P2","severity":null,"reportedOn":["2.4.8-p3"]},"categories":[],"triage":{"model":"@cf/cloudflare/clef","requestHash":"7ade458341a4a52285408155248e80d85cd3b4e530bc57fa13b652064c01f392","isBugfix":0.9643,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.9584,"feature":0.0105,"refactor":0.0161,"tests_only":0.0055,"docs_only":0.0045,"dependency":0.005},"confidence":0.9027},"scope":{"score":0.7623,"probabilities":{"0":0.3813,"1":0.475,"2":0.1437},"confidence":0.0875},"risk":{"score":0.4725,"probabilities":{"0":0.5826,"1":0.3624,"2":0.055},"confidence":0.2106},"area":{"choice":"frontend","probabilities":{"catalog":0.0228,"checkout":0.0323,"customer":0.0652,"admin":0.0405,"graphql_api":0.026,"framework":0.2364,"frontend":0.4103,"other":0.1665},"confidence":0.1544},"securityRelevant":0.2999,"reportedVersion":{"choice":"2.4.8-p3","probabilities":{"2.4.0":0.0024,"2.4.0-p1":0.0026,"2.4.1":0.0024,"2.4.1-p1":0.0026,"2.4.2":0.0025,"2.4.2-p1":0.0028,"2.4.2-p2":0.0032,"2.4.3":0.0027,"2.4.3-p1":0.0034,"2.4.3-p2":0.0038,"2.4.3-p3":0.0038,"2.4.4":0.0027,"2.4.4-p1":0.0029,"2.4.4-p10":0.0036,"2.4.4-p11":0.0037,"2.4.4-p12":0.0034,"2.4.4-p13":0.0036,"2.4.4-p14":0.0035,"2.4.4-p15":0.0036,"2.4.4-p16":0.0035,"2.4.4-p17":0.0038,"2.4.4-p18":0.0034,"2.4.4-p2":0.0024,"2.4.4-p3":0.0025,"2.4.4-p4":0.0024,"2.4.4-p5":0.0027,"2.4.4-p6":0.003,"2.4.4-p7":0.0028,"2.4.4-p8":0.0035,"2.4.4-p9":0.0029,"2.4.5":0.0028,"2.4.5-p1":0.0028,"2.4.5-p10":0.003,"2.4.5-p11":0.0033,"2.4.5-p12":0.0049,"2.4.5-p13":0.0035,"2.4.5-p14":0.0044,"2.4.5-p15":0.0036,"2.4.5-p16":0.0035,"2.4.5-p17":0.0035,"2.4.5-p2":0.003,"2.4.5-p3":0.0032,"2.4.5-p4":0.0036,"2.4.5-p5":0.0038,"2.4.5-p6":0.0045,"2.4.5-p7":0.0038,"2.4.5-p8":0.004,"2.4.5-p9":0.0029,"2.4.6":0.0039,"2.4.6-p1":0.0037,"2.4.6-p10":0.005,"2.4.6-p11":0.0049,"2.4.6-p12":0.0049,"2.4.6-p13":0.0051,"2.4.6-p14":0.0056,"2.4.6-p15":0.0056,"2.4.6-p2":0.0032,"2.4.6-p3":0.0036,"2.4.6-p4":0.0053,"2.4.6-p5":0.0042,"2.4.6-p6":0.0042,"2.4.6-p7":0.0054,"2.4.6-p8":0.0038,"2.4.6-p9":0.0032,"2.4.7":0.0054,"2.4.7-p1":0.0042,"2.4.7-p10":0.0053,"2.4.7-p2":0.0035,"2.4.7-p3":0.0058,"2.4.7-p4":0.0063,"2.4.7-p5":0.0049,"2.4.7-p6":0.0067,"2.4.7-p7":0.0049,"2.4.7-p8":0.0051,"2.4.7-p9":0.0034,"2.4.8":0.0362,"2.4.8-p1":0.0048,"2.4.8-p2":0.027,"2.4.8-p3":0.6031,"2.4.8-p4":0.0198,"2.4.8-p5":0.0146,"2.4.9":0.0073,"unspecified":0.0039},"confidence":0.3599},"backportWorthy":{"score":1.3533,"probabilities":{"0":0.175,"1":0.2966,"2":0.5284},"confidence":0.0967}},"curated":{"title":"Fixes the store switch error message not showing until a later POST request","description":"After you open stores/store/switchaction with a store that wasn't found, no error message is displayed immediately; the message appears only once you add any product to the cart or run any other POST request. SwitchAction now sets the store cookie for the current store when there is an error, so the logic in customer-data.js will trigger load sections to display the message.","categories":[],"author":"claude-code/opus-5.5","date":"2026-10-06","reviewedBy":null},"tests":null},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-40481 details"}