The Drupal module me aliases provides an easy way to create URLs specific to a logged-in user. Without the me aliases module, URLs for a logged-in user would have the user's uid, for example when editing the user's profile /user/269763/edit. With the me aliases module, the same URL would be /user/me/edit. In effect, the module replaces the me in the URL with the code ($user->uid).
Suppose you want to add a menu item called "My Profile" to your Drupal site. Here's how the screen Site Building » Menu » Primary Links » Add Item would look:
This nifty module also offers many other options for site administrators, especially when used in conjugation with the token module. The URL /user/me/edit could become /user/james/edit when the [user-name] token is used. Other available options are:
- Control if links for tabs etc. are rewritten with the me alias.
- Allow users to choose if they want me alias on their account.
- Control if me should redirect to the path with the uid, and not stay on the me aliased path.
- Redirect anonymous users from a URL containing me to another path.
- Specify include/exclude path filters for the list of paths that are affected by me. (This is almost identical to the block configuration settings. Admins with the appropriate permission can also use PHP for this list if they desire.)