For some reason, my drupal installation didn't come with a 'My Account' link in the navigation bar, and I was trying to figure out how to do this. I thought that I could just use token as the path ([current-user:url] to be exact) but it said it was an invalid path name.

How can I make this link? (This question relates to my question at http://drupal.org/node/1889372 which was never answered, so if someone could elaborate, that would be great!)

Comments

bander2’s picture

The path to the user page is just "user".

- Brendan

jdesrig’s picture

That worked, thanks. But why did it work? Where is the redirect set that it brings me to user/[username]?

vm’s picture

it's a dynamic link in core that recognizes the user clicking on the link.

ayesh’s picture

Can you make sure it's not disabled?
There was a thread about some bug if this in this forum but can't find it right now...

vm’s picture

For some reason, my drupal installation didn't come with a 'My Account' link in the navigation bar,

not sure what you mean by navigation bar. If you mean the tool bar, you simply click on the user name. If you mean the navigation menu its not there because that's not the default placement. It defaults to the user menu.

using tokens in menus requires: http://drupal.org/project/menu_token