Dear Drupal devel,
I always have a problem from Drupal 4x to the current version.
The problem is, when I always create new link for current user.
e.g: If I want create "Edit My Account" link from the "menu" administrator, I just enter the URL below, so it will be generated to the edit user account page.
http://www.mysite.com/user//edit

Regards,
Mobo

Comments

keycoke’s picture

Sorry, the URL is: http://www.mysite.com/user/[username]/edit
When the [username] will be generated to the current username.

Regards,
Mobo

melat0nin’s picture

This does not work for me.

I'm am trying to get this URL to work:

http://sub.domain.co.uk/contributor/[username]/

...but it doesn't. Any thoughts?

pasqualle’s picture

Version: 6.0-rc2 » 7.x-dev
sun’s picture

Status: Active » Closed (won't fix)

You can put this into a custom module on your Drupal site:

  if ($user->uid) {
    // We want to make the current user's profile edit page accessible
    // without knowing their uid, so just linking to /user/edit is enough.
    if ($_GET['q'] == 'user/edit') {
      drupal_goto("user/$user->uid/edit");
    }
  }

- in D5, put it into hook_menu(), where $may_cache is FALSE.
- in D6, put it into hook_init().