Closed (fixed)
Project:
me aliases
Version:
7.x-1.0
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Dec 2011 at 04:08 UTC
Updated:
24 Jan 2012 at 22:20 UTC
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
Comment #1
shadowdknight commentedMy Bad, I used the override menu option.
Thanks
Comment #2
goodeit commentedI 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_argmust 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!
Comment #3
nohup commentedgoodeit,
You are right, it is erroneous behavior. I have committed the changes you pointed out to git. Thanks.