{"data":{"id":"magento2-40065","source":"github-pr","sourceRef":"magento/magento2#40065","title":"Add Store Code to Urls should be Global","pr":{"number":40065,"url":"https://github.com/magento/magento2/pull/40065","author":"thomas-kl1","mergedAt":"2025-09-29T13:47:12Z","mergeCommit":"f51d8f0c091d8918c432494cc42ed34a2b47944c","headCommit":"2443bbc13217053dcbe24673d8e822334042fc53","baseRef":"2.4-develop","diffSha256":"8b0096c19214ca7319a56ecfa7bf3ce08c92b2ddeb6977d70b12b76fb57d9c1e"},"issues":[{"number":40069,"url":"https://github.com/magento/magento2/issues/40069","title":"[Issue] Add Store Code to Urls should be Global","labels":["Area: Framework","Component: Store","Issue: Confirmed","Priority: P3","Progress: done","Reported on 2.4.x","Reproduced on 2.4.x"],"kind":"pr-derived"}],"fixedIn":"2.4.9","containingTags":["2.4.9"],"reportedOn":null,"codeMatch":{"2.4.6":"conflict","2.4.6-p1":"conflict","2.4.6-p2":"conflict","2.4.6-p3":"conflict","2.4.6-p4":"conflict","2.4.6-p5":"conflict","2.4.6-p6":"conflict","2.4.6-p7":"conflict","2.4.6-p8":"conflict","2.4.6-p9":"conflict","2.4.6-p10":"conflict","2.4.6-p11":"conflict","2.4.6-p12":"conflict","2.4.6-p13":"conflict","2.4.6-p14":"conflict","2.4.6-p15":"conflict","2.4.7":"conflict","2.4.7-p1":"conflict","2.4.7-p2":"conflict","2.4.7-p3":"conflict","2.4.7-p4":"conflict","2.4.7-p5":"conflict","2.4.7-p6":"conflict","2.4.7-p7":"conflict","2.4.7-p8":"conflict","2.4.7-p9":"conflict","2.4.7-p10":"conflict","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.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/App/Request/StorePathInfoValidator.php","change":"modified","package":"magento/module-store"},{"path":"app/code/Magento/Store/Model/Store.php","change":"modified","package":"magento/module-store"},{"path":"app/code/Magento/Store/Url/Plugin/RouteParamsResolver.php","change":"modified","package":"magento/module-store"}],"stripped":{"tests":["app/code/Magento/Catalog/Test/Unit/Block/Widget/LinkTest.php","app/code/Magento/Store/Test/Unit/App/Request/StorePathInfoValidatorTest.php","app/code/Magento/Store/Test/Unit/Url/Plugin/RouteParamsResolverTest.php","dev/tests/integration/testsuite/Magento/Store/Model/StoreTest.php"],"docs":[],"outsideCode":[]},"linesChanged":92,"mergeBatched":false,"excluded":null,"sections":{"description":"The Add Store Code to Urls setting in the store web configuration is defined as global.\nHowever in the core, the setting is fetched with the current scope in mind.","stepsToReproduce":null,"expectedResult":null,"actualResult":null,"source":"pr"},"signatures":[],"labels":{"area":["Framework"],"component":["Store"],"priority":"P3","severity":null,"reportedOn":["2.4.x"]},"categories":[],"triage":{"model":"@cf/cloudflare/clef","requestHash":"537245340847dcebd21499d26c9b0d986af03df5e61047a5df416e53506595b3","isBugfix":0.8764,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.9187,"feature":0.0138,"refactor":0.0546,"tests_only":0.0073,"docs_only":0.0025,"dependency":0.0031},"confidence":0.8167},"scope":{"score":1.0813,"probabilities":{"0":0.2292,"1":0.4603,"2":0.3105},"confidence":0.0413},"risk":{"score":0.8109,"probabilities":{"0":0.303,"1":0.5831,"2":0.1139},"confidence":0.1671},"area":{"choice":"framework","probabilities":{"catalog":0.0708,"checkout":0.0106,"customer":0.009,"admin":0.0672,"graphql_api":0.0075,"framework":0.6308,"frontend":0.0932,"other":0.1109},"confidence":0.347},"securityRelevant":0.0088,"reportedVersion":{"choice":"unspecified","probabilities":{"2.4.0":0.0034,"2.4.0-p1":0.004,"2.4.1":0.0037,"2.4.1-p1":0.0036,"2.4.2":0.0046,"2.4.2-p1":0.0046,"2.4.2-p2":0.0058,"2.4.3":0.0087,"2.4.3-p1":0.0089,"2.4.3-p2":0.01,"2.4.3-p3":0.0066,"2.4.4":0.0134,"2.4.4-p1":0.0069,"2.4.4-p10":0.0061,"2.4.4-p11":0.0062,"2.4.4-p12":0.0055,"2.4.4-p13":0.0055,"2.4.4-p14":0.006,"2.4.4-p15":0.0052,"2.4.4-p16":0.0058,"2.4.4-p17":0.005,"2.4.4-p18":0.0048,"2.4.4-p2":0.0024,"2.4.4-p3":0.0026,"2.4.4-p4":0.0033,"2.4.4-p5":0.0031,"2.4.4-p6":0.0042,"2.4.4-p7":0.0036,"2.4.4-p8":0.0036,"2.4.4-p9":0.0033,"2.4.5":0.0133,"2.4.5-p1":0.0098,"2.4.5-p10":0.0073,"2.4.5-p11":0.01,"2.4.5-p12":0.0096,"2.4.5-p13":0.0081,"2.4.5-p14":0.0094,"2.4.5-p15":0.007,"2.4.5-p16":0.0081,"2.4.5-p17":0.0075,"2.4.5-p2":0.0029,"2.4.5-p3":0.0045,"2.4.5-p4":0.005,"2.4.5-p5":0.0046,"2.4.5-p6":0.0055,"2.4.5-p7":0.0057,"2.4.5-p8":0.0057,"2.4.5-p9":0.0038,"2.4.6":0.0238,"2.4.6-p1":0.0135,"2.4.6-p10":0.0081,"2.4.6-p11":0.0108,"2.4.6-p12":0.0103,"2.4.6-p13":0.0092,"2.4.6-p14":0.0085,"2.4.6-p15":0.0075,"2.4.6-p2":0.0044,"2.4.6-p3":0.0079,"2.4.6-p4":0.0091,"2.4.6-p5":0.0065,"2.4.6-p6":0.0093,"2.4.6-p7":0.0075,"2.4.6-p8":0.0064,"2.4.6-p9":0.0043,"2.4.7":0.0268,"2.4.7-p1":0.0146,"2.4.7-p10":0.01,"2.4.7-p2":0.0069,"2.4.7-p3":0.0164,"2.4.7-p4":0.0155,"2.4.7-p5":0.0136,"2.4.7-p6":0.0159,"2.4.7-p7":0.0161,"2.4.7-p8":0.0101,"2.4.7-p9":0.0069,"2.4.8":0.023,"2.4.8-p1":0.0156,"2.4.8-p2":0.0184,"2.4.8-p3":0.0162,"2.4.8-p4":0.0158,"2.4.8-p5":0.0145,"2.4.9":0.0215,"unspecified":0.2869},"confidence":0.0797},"backportWorthy":{"score":1.4226,"probabilities":{"0":0.1395,"1":0.2984,"2":0.5621},"confidence":0.1367}},"curated":{"title":"Fixes Add Store Code to Urls being read with the current scope","description":"The Add Store Code to Urls setting in the store web configuration is defined as global. However in the core, the setting is fetched with the current scope in mind. StorePathInfoValidator, Store::isUseStoreInUrl and the RouteParamsResolver plugin now read it with isSetFlag, without the store scope.","categories":[],"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:31:43.218Z","releaseCommit":"870a22c63d9d9b68fa3297962e2d5d5841115814","suites":{"unit":{"before":"fail","after":"pass","runAt":"2026-10-06T09:31:43.218Z"},"integration":{"before":"fail","after":"pass","runAt":"2026-10-06T09:31:43.218Z"}}}}},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-40065 details"}