<?xml version="1.0"?>
<!-- Applies to every customer account page: add a "Dashboard" link to the
     My-Account sidebar pointing at the new /customer/dashboard/ page, and remove
     the legacy "Account Dashboard" (customer/account) link — the new dashboard
     replaces it as the account landing page. -->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="customer_account_navigation">
            <block class="Magento\Customer\Block\Account\SortLink" name="customer-account-navigation-dashboard-link">
                <arguments>
                    <argument name="path" xsi:type="string">customer/dashboard</argument>
                    <argument name="label" xsi:type="string" translate="true">Dashboard</argument>
                    <argument name="sortOrder" xsi:type="number">320</argument>
                </arguments>
            </block>
        </referenceBlock>
        <!-- Hide the legacy "My Account" (customer/account) sidebar link. -->
        <referenceBlock name="customer-account-navigation-account-link" remove="true"/>
    </body>
</page>
