I need to create a new tab in M2's customer dashboard. I tried to do it the way they do in the core: put a xml file in view/frontend/layout
<body>
<referenceBlock name="customer_account_navigation">
<block class="Magento\Framework\View\Element\Html\Link\Current" name="customer-account-navigation-my-block-name">
<arguments>
<argument name="path" xsi:type="string">module/controller</argument>
<argument name="label" xsi:type="string">My Tab Name</argument>
</arguments>
</block>
</referenceBlock>
</body>
I also tried the addLink method like in M1 but did not work out also. What is the right way to do this?
Best Answer
app/code/Learning/Custom/view/frontend/layout/customer_account.xml
Clear magento cache