Skip to content

Commit 4f30a3c

Browse files
committed
#7816: Customer_account.xml file abused
This is in addiiton to #12852 commit 36cac17 - that fix removed the title from being set in the `customer_account.xml` file but the fix seemed to do nothing as the title was always being set in the controller anyway. I've removed from the controller and added to the correct layout file.
1 parent 509e5c4 commit 4f30a3c

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)