Page MenuHomePhabricator

Fix invalid user link on Special:CentralAuth
Open, Needs TriagePublic

Description

On a Special:CentralAuth page for a locked account , a snippet of the Meta-Wiki log is shown with a link that does not work.
Example:

01:13, 10 September 2019 Matiia ( talk | contribs ) changed status for global account "User:Сарра Батаева@global": set locked; unset (none) (Cross-wiki abuse)

Because the above line is culled from the Meta log; "User:Сарра Батаева@global" is always redlink and clicking it will attempt to search for nonexistent "User:Сарра Батаева@global".

It should be fixed with either of these:

  1. The user part can be unlinked completely. Any global information about them is already in the table that follows.
  2. It can be linked back to Meta-Wiki userpage or global log

Event Timeline

Ammarpad added subscribers: Legoktm, hoo.

I would like to know what the maintainers think about this.

Currently these link fixes are being done in the Gadget-CentralAuthInterlinkFixer.js, but only for Special:Log and Special:Recentchanges. That's probable the place to look at for this cosmetic fix.

I wonder why we can't just simply get rid of the @global suffix and modify the links to point to Special:CentralAuth/$1 (or better link to prevent encoding issues with non-latin usernames). See T139495: Get rid of @global in Special:Log/globalauth, use Special:CentralAuth/$1 instead.

I wonder why we can't just simply get rid of the @global suffix and modify the links to point to Special:CentralAuth/$1 (or better link to prevent encoding issues with non-latin usernames). See T139495: Get rid of @global in Special:Log/globalauth, use Special:CentralAuth/$1 instead.

That's what I wanted to do. But I don't know the logic of why it should be on a gadget not the code. Pointing to Special:CentralAuth/$1 would be good in the logs but not on the Special:CentralAuth page as it will end up creating useless loop.