0

I am trying to add in my footer links, when a user is logged in, a link to the order history page.

This is what I added to my customer.xml file

<action method="addLink" translate="label title" module="sales">
    <label>My Orders</label>
    <url>sales/order/history/</url>
    <title>My Orders</title>
    <prepare/>
    <urlParams/>
    <position>2</position>
</action>

The link is added and displayed in the right way, but the href is not an absolute URL, it is relative and it does not bring to the right page. How can I obtain the absolute URL?

2

You were pretty close.
The only thing you need to change is <prepare /> to <prepare>true</prepare>.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.