OK I did spend way too many hours to try to figure this one out.
I want to add a link to the top link to access the order history screen.
I got it working somewhat but if I click on any other toplink link, the url path get screwed up.
Here is what I did:
I modified the customer.xml layout in my template by adding the following
This will take logged in customers directly to the order history page. For anonymous users it will take to the log in page and then on successfully login will take directly to their order history page..
If you want the link to show only for customer that are logged in then put the code between <customer_logged_in></customer_logged_in> instead of <default></default>
Although I just tried and tested this for you, let me know if it works or not.