Profile button question (on my account pg)

Status: 
Open
Question: 

I recently noticed that when I click on my profile (here at drupalfun.com) it takes me to: http://drupalfun.com/profile/greenbirdmedia but if I go to my account and click the "View my profile" link it takes me to: http://drupalfun.com/node/508

The same happens on my test site.

I am wondering if there is a way to get that button to link to the pretty url (profile/gbm) rather than the not so pretty (node/508)

Responses

1. The reason I link to the "not

The reason I link to the "not so pretty url", is that it remains the same always.

You can adapt the code to print profile/

and then get the username from the user object. Off the top of my head, that would be something like print $user->name. (not sure about the name part, could be title,...)