Hello and thanks for this module. I am experiencing a strange bug: I am logged in as the super admin (UID 1). When me aliases is disabled, I can go to user/#/edit (where # is the uid of any existing user) and see the user edit page like normal. When me aliases is enabled, no matter what user's UID I put in, the breadcrumb and page title shows my (admin, user #1) information instead of the user whose UID I entered.
The same thing happens if I am logged in as a different user who is also an admin: user/#/edit always show the user I am logged in as in the page title and breadcrumb.
The rest of the page is usually filled with the correct information. For example, if I go to user/10/edit when logged in as user 1, all of user 10's information will show below the incorrect breadcrumb and page title.
I have tried to trace the origin of this bug but have had no luck.
Comments
Comment #1
kruser commentedI can confirm that it isn't just for user 1, when any user edits another user's profile2 tabs it displays with wrong breadcrumbs and title.
Comment #2
kruser commentedI wrote a custom module with a form_alter script to combat this...
Comment #3
roland.wells commentedConfirming this is still an issue.
Drupal 7.23
'me' Aliases 7.x-1.1
Comment #4
areikiera commentedConfirmed for me too.
Drupal 7.23
'me' Aliases 7.x-1.1
Comment #5
Darren Shelley commentedExperiencing this issue too.
My solution was to re-evaluate why our team was using the "me aliases" module.
The only reason the team had used "me aliases" was for the benefit of sending generic URLS in email marketing where we did not necessarily know a users UID.
E.g automatically redirecting a user under the following conditions
On that basis I was able to replace the entire module with a simple implementation of hook_url_inbound_alter.
The "me aliases" module does provide far more uses so this won't be applicable to every use case:
Comment #6
DrCord commentedThe code in #2 worked great for me.
Comment #7
dweber019 commentedSame for me. Showing username A when I'm logged in with user B. This happens for me with ga_login module tab. That's the only tab affected with this behavior.
Comment #8
donquixote commentedI am running into the same issue.
Maybe an acceptable solution (without this module) for a community site is to have two separate realms:
user/%user/*to view any user profileuser/me/*to edit / manage one's own profile and account. The router path would be user/me/*, not some crazy 'user/%me/*' wildcard argument replacement.In fact this does not even need to be
user/me/*, it could also be justme/*or something else.user/%user/editwill be only visible to administrators. Others have to visituser/me/edit.For instance, Facebook does separate the two.
Comment #9
anybodyI guess this is the same issue as described in #2868208: Incorrect user loaded by argument handler. That issue has a patch, could you please check if that solves the issue for you?
Then we could proceed over there and close this as duplicate. Otherwise I guess it's at least related.