0

I have created a block for the header. And it contains static page URLs. I have added the URLs from the Theme default.xml. Here is the code.

<block class="Magento\Framework\View\Element\Html\Link" name="track-orders">
    <arguments>
        <argument name="label" xsi:type="string" translate="true">Track My Orders</argument>
        <argument name="path" xsi:type="string" translate="true">sales/guest/form</argument>
    </arguments>
</block>

When I execute the file it shows the URL like below. What could be the issue?

<a href="https://test.com/"sales/guest/form"/">Track My Orders</a>
  • You shouldn't need to translate the path argument – danronmoon Nov 7 at 16:14
  • Can you provide the block class code that you created to contains static page URLs. – Pritam Info 24 Nov 8 at 6:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.