Link "logged in as XXXXXX" to /u/... instead of /user

Migrated issue

Reported by: kunalkursija

Hello Everyone,

I think there should be an little enhancement to URL of "logged in as XXXXXX" tab. i say so because I have faced some minor problems with this url in past, The details are mentioned below, lets walk through...

Drupal.org Behaviour:

  • After logging-in to drupal.org, Users are redirected to user-profile page.
  • Here URL for profile is "https://www.drupal.org/u/XXXXXX". Where "XXXXXX" is the username of logged in user.

On the same profile page, There is a tab next to "logout" tab called "Logged in as XXXXXX". I have always found this tab not a user friendly one. Because of its url.

The url for this tab is "https://www.drupal.org/user", Where as for rest of the user profile pages it is "https://www.drupal.org/u/XXXXXX". Which sometimes become problematic.

Let me explain by giving an example.

  • Lets say i have an browser with two tabs open, Drupal.org home page and linkedin profile edit page.
  • While editing my Linkedin profile, i want to share my drupal.org profile via an HREF.
  • I come back to drupal.org (home page), I click on "Logged in as XXXXXX" tab. I copy the URL from browser tab of drupal.org.
  • I have copied URL on my clipboard, I save my Linkedin profile and close the browser.
  • Now anyone going to my linkedin profile when clicks on this HREF, Will be asked to login to site. This is purely because of nature of "/user" path. This thing contradicts to drupal.org permissions. Which is that anybody can view anyone's profiles.

Since "https://www.drupal.org/user" page works differently for "Anonymous & Authenticated" users, & if we are using Aliases to user profile page then we must use it all over the site & not just for some random tabs & pages.

Please note: After clicking on "logged in as XXXXXX" tab, user is actually being faked by showing "VIEW" tab as active (GREEN COLOR). Where as Url for this VIEW tab is "https://www.drupal.org/u/XXXXXX".

i think this should be considered as an enhancement.

Thank you for the read & your time.

Pre-migration files

Edited by drupalbot