Page MenuHomePhabricator

Roll out the Toolbox link for URL Shortener in Wikimedia sites
Open, Stalled, LowPublic

Description

This is a request to roll out the Toolbox link for URL Shortener (the link implemented as T107101).
The request was originally mentioned in T222360 but not implemented since that task was closed as duplicate.
It replaces [[w:zh:MediaWiki:Gadget-shortURL.js]] which is enabled by default; frwiki has a similar gadget albeit not enabled by default.

Event Timeline

Urbanecm changed the task status from Open to Stalled.Nov 16 2020, 1:42 PM
Urbanecm added a subscriber: Urbanecm.

Hello @patilise, thanks for creating this task! AFAICS, the sidebar link is inserted in onSidebarBeforeOutput. There's an if that short-circuits the hook, which requires $wgUrlShortenerReadOnly || !$wgUrlShortenerEnableSidebar to be false in order to insert the link. However, in Wikimedia production, wgUrlShortenerReadOnly is true at all wikis but metawiki (that is to make sure throttling works). For that reason, merely setting $wgUrlShortenerEnableSidebar to true would not help, given the sidebar link would display only at metawiki.

As such, I'm marking this task as stalled on changing UrlShortener to allow specifying the wiki that the shortener link should point to.

@Urbanecm, thank you for looking at this item! In that case I will consider the gadget solution for other wikis at this stage.
Separately, perhaps we could still enable the link for metawiki?

We could, but people having the gadget enabled globally (via global.js) would have two links, which is not easily avoidable at this point. The best thing would be to fix the issue itself, and I created T267925 for that. I can look into that later today I guess.

Beside the technical issues (that I assume are easily solvable), the sidebar link for url shortener needs a design review and rework, currently it's pretty bad. @Esanders Might be interested in working on it since he reworked its special page.