{"data":{"id":"magento2-36263","source":"github-pr","sourceRef":"magento/magento2#36263","title":"Customer is logged in but showing 404 error in frontend.","pr":{"number":36263,"url":"https://github.com/magento/magento2/pull/36263","author":"rogerdz","mergedAt":"2024-05-28T15:06:31Z","mergeCommit":"0b0f7c8cc853194f39043bd19c96c2fcfbab1e5c","headCommit":"3d6a5dedea2d29da8933e81186ca61d0e8e2cf08","baseRef":"2.4-develop","diffSha256":"57163fea60ffb4b93ce27d5b80ea5a74db6859195c57dd84dd8920757290ba52"},"issues":[{"number":35838,"url":"https://github.com/magento/magento2/issues/35838","title":"Customer is logged in but showing 404 error in frontend.","labels":["Area: Account","Component: LoginAsCustomerFrontendUi","Issue: Confirmed","Priority: P3","Progress: done","Reported on 2.3.x","Reported on 2.4.x","Reproduced on 2.4.x"],"kind":"human"}],"fixedIn":"2.4.8","containingTags":["2.4.8","2.4.8-p1","2.4.8-p2","2.4.8-p3","2.4.8-p4","2.4.8-p5","2.4.9"],"reportedOn":null,"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":"conflict","2.4.8-p1":"conflict","2.4.8-p2":"conflict","2.4.8-p3":"conflict","2.4.8-p4":"conflict","2.4.8-p5":"conflict","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"],"components":["magento/module-customer"],"files":[{"path":"app/code/Magento/Customer/Model/Url.php","change":"modified","package":"magento/module-customer"}],"stripped":{"tests":["app/code/Magento/Customer/Test/Unit/Model/UrlTest.php"],"docs":[],"outsideCode":[]},"linesChanged":39,"mergeBatched":false,"excluded":null,"sections":{"description":"It is not generating referrer url to customer dashboard page,It is showing 404 error page but customer is logged in.","stepsToReproduce":"1. Go to frontend.\n1. Add `/customer/account/loginPost/` in your magento url. ex-<http://magento240.local/customer/account/loginPost/>\n1. Now click on {**}S{*}*ign In** \n1. Give login id and password.","expectedResult":"It should generate referer url to Customer dashboard page when referer URL header contains /loginPost.","actualResult":"It is not generating referrer url to customer dashboard page,It is showing 404 error page but customer is logged in.\n\n**Attached video:** [Untitled_ Jul 29, 2022 3_00 PM.webm](https://user-images.githubusercontent.com/24892273/181730483-2e2f226d-7e83-4cf5-b101-49c7a7526ee1.webm)","source":"issue"},"signatures":[],"labels":{"area":["Account"],"component":["LoginAsCustomerFrontendUi"],"priority":"P3","severity":null,"reportedOn":["2.3.x","2.4.x"]},"categories":["Customer"],"triage":{"model":"@cf/cloudflare/clef","requestHash":"cf95a1671d39f18f935456d5b31685ad2776fe525e3821cdc0b302ca0faded24","isBugfix":0.9782,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.9644,"feature":0.0064,"refactor":0.0152,"tests_only":0.0073,"docs_only":0.0032,"dependency":0.0035},"confidence":0.9166},"scope":{"score":0.7887,"probabilities":{"0":0.3823,"1":0.4467,"2":0.171},"confidence":0.0624},"risk":{"score":0.9083,"probabilities":{"0":0.4208,"1":0.2502,"2":0.329},"confidence":0.0219},"area":{"choice":"customer","probabilities":{"catalog":0.002,"checkout":0.0032,"customer":0.9739,"admin":0.0031,"graphql_api":0.0021,"framework":0.0048,"frontend":0.0081,"other":0.0028},"confidence":0.9412},"securityRelevant":0.8341,"reportedVersion":{"choice":"unspecified","probabilities":{"2.4.0":0.0454,"2.4.0-p1":0.0193,"2.4.1":0.0142,"2.4.1-p1":0.0121,"2.4.2":0.0137,"2.4.2-p1":0.0138,"2.4.2-p2":0.0164,"2.4.3":0.0154,"2.4.3-p1":0.018,"2.4.3-p2":0.017,"2.4.3-p3":0.012,"2.4.4":0.0153,"2.4.4-p1":0.021,"2.4.4-p10":0.008,"2.4.4-p11":0.01,"2.4.4-p12":0.009,"2.4.4-p13":0.0083,"2.4.4-p14":0.0101,"2.4.4-p15":0.0085,"2.4.4-p16":0.0083,"2.4.4-p17":0.0078,"2.4.4-p18":0.0069,"2.4.4-p2":0.0061,"2.4.4-p3":0.0059,"2.4.4-p4":0.0078,"2.4.4-p5":0.0083,"2.4.4-p6":0.0079,"2.4.4-p7":0.0078,"2.4.4-p8":0.007,"2.4.4-p9":0.006,"2.4.5":0.0078,"2.4.5-p1":0.0085,"2.4.5-p10":0.0047,"2.4.5-p11":0.0066,"2.4.5-p12":0.0059,"2.4.5-p13":0.0064,"2.4.5-p14":0.0066,"2.4.5-p15":0.0052,"2.4.5-p16":0.0045,"2.4.5-p17":0.0052,"2.4.5-p2":0.0033,"2.4.5-p3":0.0049,"2.4.5-p4":0.0057,"2.4.5-p5":0.0049,"2.4.5-p6":0.0059,"2.4.5-p7":0.0054,"2.4.5-p8":0.004,"2.4.5-p9":0.0036,"2.4.6":0.0096,"2.4.6-p1":0.0099,"2.4.6-p10":0.0073,"2.4.6-p11":0.0075,"2.4.6-p12":0.0058,"2.4.6-p13":0.0067,"2.4.6-p14":0.0065,"2.4.6-p15":0.0055,"2.4.6-p2":0.0039,"2.4.6-p3":0.0057,"2.4.6-p4":0.0076,"2.4.6-p5":0.0064,"2.4.6-p6":0.0066,"2.4.6-p7":0.0061,"2.4.6-p8":0.0052,"2.4.6-p9":0.0039,"2.4.7":0.0053,"2.4.7-p1":0.0065,"2.4.7-p10":0.0053,"2.4.7-p2":0.005,"2.4.7-p3":0.0077,"2.4.7-p4":0.0123,"2.4.7-p5":0.0084,"2.4.7-p6":0.011,"2.4.7-p7":0.0076,"2.4.7-p8":0.007,"2.4.7-p9":0.0042,"2.4.8":0.0051,"2.4.8-p1":0.0063,"2.4.8-p2":0.0096,"2.4.8-p3":0.0083,"2.4.8-p4":0.0103,"2.4.8-p5":0.0083,"2.4.9":0.0093,"unspecified":0.2919},"confidence":0.0828},"backportWorthy":{"score":1.4542,"probabilities":{"0":0.1233,"1":0.2992,"2":0.5775},"confidence":0.1574}},"curated":{"title":"Fixes customer login showing a 404 page when the referer is a 404 URL","description":"After going to /customer/account/loginPost/ and then Sign In, the customer is logged in but the frontend is showing 404 error page, not the Customer dashboard. Customer Model Url getLoginUrlParams now does not encode the referer when the current page url is the web/default/no_route url, so after login the customer will redirect to Customer dashboard.","categories":["Customer"],"author":"claude-code/opus-5.5","date":"2026-10-06","reviewedBy":null},"tests":{"2.4.7-p10":{"before":"pass","after":"pass","adapted":false,"runAt":"2026-10-06T09:29:08.927Z","releaseCommit":"72561bf80652f57cc642a03e2c9a51d74a285b14","suites":{"unit":{"before":"pass","after":"pass","runAt":"2026-10-06T09:29:08.927Z"}}}}},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-36263 details"}