Suggest an option for using username instead of uid. I've changed

$destination.=(($destination=='')?'':'/').(($fragment=='me')?$user->uid:$fragment);
to
$destination.=(($destination=='')?'':'/').(($fragment=='me')?$user->name:$fragment);

as a temporary workaround.

Comments

ahoeben’s picture

Status: Active » Closed (works as designed)

This will not work reliably.

This module 'blindly' replaces 'me' with the uid. The 'beauty' of this module is that if you specify 'user/me' as a valid alias, it will work for 'user/me/edit', 'user/me/contact', 'user/me/edit/Personal+information', etc. Unless you make aliases for all these cases, your suggestion breaks all that.

If you want to see usernames instead of user ids, I suggest you use a combination of this module, Pathauto to generate path aliases, and Global Redirect. Global Redirect will ensure that - provided there's a url alias for a page - the url alias will show instead (even if you typed in the url).

dklee’s picture

Version: 5.x-1.0 » 6.x-2.7

Is there any reason this module could not alias another word like 'self' and redirect that to the user name?

For some views I have setup, it is much more convenient and nice to have the user name as the argument.

I am having trouble figuring out how to make this work with pathauto since my views are not content types per se.

BManuel’s picture

Title: Support option for name instead of uid » Support option for name instead of uid in Views
Status: Closed (works as designed) » Active

Would be nice if this can be implemented for views. I definately need this feature for my website. I don't mind chipping in to
add this feature.
Thanks
BM

nohup’s picture

Project menu_token (http://drupal.org/project/menu_token) might help.

nohup’s picture

Status: Active » Closed (works as designed)