Skip to content

Commit 4a34325

Browse files
ENGCOM-1146: #7816: Customer_account.xml file abused (2.3) #14322
- Merge Pull Request #14322 from mikewhitby/magento2:fix_7816_2.3 - Merged commits: 1. caf5b3e
2 parents 452710d + caf5b3e commit 4a34325

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/code/Magento/Customer/Controller/Account/Index.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ public function __construct(
3535
*/
3636
public function execute()
3737
{
38-
/** @var \Magento\Framework\View\Result\Page $resultPage */
39-
$resultPage = $this->resultPageFactory->create();
40-
$resultPage->getConfig()->getTitle()->set(__('My Account'));
41-
return $resultPage;
38+
return $this->resultPageFactory->create();
4239
}
4340
}

app/code/Magento/Customer/view/frontend/layout/customer_account.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
*/
77
-->
88
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd" label="Customer My Account (All Pages)" design_abstraction="custom">
9+
<head>
10+
<title>My Account</title>
11+
</head>
912
<body>
1013
<attribute name="class" value="account"/>
1114
<referenceContainer name="sidebar.main">

0 commit comments

Comments
 (0)