Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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 CreditAttribution: shadowdknight commentedMy Bad, I used the override menu option.
Thanks
Comment #2
goodeit CreditAttribution: 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_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!
Comment #3
nohup CreditAttribution: nohup commentedgoodeit,
You are right, it is erroneous behavior. I have committed the changes you pointed out to git. Thanks.