Im using profile 2, every time I need to edit other user profile,
the path replace to my profile page.
Anyway, great module!

Thanks!

Comments

shadowdknight’s picture

My Bad, I used the override menu option.

Thanks

goodeit’s picture

Status: Active » Needs review

I am experiencing the same issue. I don't think the "Rewrite links generated by the drupal menu system" option is supposed to rewrite any uid links to use the me alias, I think it is only supposed to rewrite links that have your uid. Please correct me if I am wrong, but to me that seems like erroneous behavior.

Example: I am logged in as user 1, and when I view user/10/view, all of the tab links redirect to user/me/* instead of user/10/*. The page also shows my user information instead of user 10's, but that is a separate issue I think.

To fix this problem, the function me_to_arg must be changed slightly. The line $uid = $GLOBALS['user']->uid ? _me_get_me_alias() : $uid; should be $uid = ($uid === $GLOBALS['user']->uid) ? _me_get_me_alias() : $uid;

Making that one-line change fixed the links for me... now to figure out a way to prevent it from pulling up the wrong information!

nohup’s picture

Status: Needs review » Fixed

goodeit,

You are right, it is erroneous behavior. I have committed the changes you pointed out to git. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.