Page MenuHomePhabricator

Under Vector 2022 on Wikimedia wikis, page width is different between Special:UserLogin and Special:CreateAccount
Closed, ResolvedPublic

Description

Under Vector 2022 on Wikimedia wikis, page width is different between Special:UserLogin and Special:CreateAccount. This doesn't occur for me locally.

Wikimedia wikis
firefox_UPKxFKORkH.png (1×1 px, 68 KB)
firefox_cisUvZXpxJ.png (1×1 px, 89 KB)
Local wiki
firefox_XXqQ0G9AD2.png (1×1 px, 48 KB)
firefox_ww8lHGUhlW.png (1×1 px, 74 KB)

I don't really care whether these pages use full or limited width, but they should use the same width, as otherwise switching between them is jarring.

Event Timeline

This behavior is controlled by wgVectorMaxWidthOptions. explaining why I get a different experience locally: https://gerrit.wikimedia.org/g/operations/mediawiki-config/+/dd6fa93b3ad44a5e7d88436273cce4aa47ea263e/wmf-config/InitialiseSettings.php#2463

That definition looks like both Special:UserLogin and Special:CreateAccount are intended to use limited width, with a reference to T306834, but somehow this doesn't work for Special:UserLogin.

That config is processed by the Vector code here: https://gerrit.wikimedia.org/g/mediawiki/skins/Vector/+/12923856ec9046a7b50f47019dd15ffe7045a011/includes/ConfigHelper.php#39

It looks like, for titles that correspond to special pages, they should be specified using the canonical special page name – which is actually Userlogin (with lowercase L) for Special:UserLogin: https://gerrit.wikimedia.org/g/mediawiki/core/+/eeb5182f532845c012da388a92c8bc6956747c3f/includes/specialpage/SpecialPageFactory.php#441 (this is annoying, but difficult to change now, as lots of code checks for it)

Change #1199074 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[operations/mediawiki-config@master] Make wgVectorMaxWidthOptions specify Special:Userlogin correctly

https://gerrit.wikimedia.org/r/1199074

Change #1199074 merged by jenkins-bot:

[operations/mediawiki-config@master] Make wgVectorMaxWidthOptions specify Special:Userlogin correctly

https://gerrit.wikimedia.org/r/1199074

Mentioned in SAL (#wikimedia-operations) [2025-10-28T13:21:13Z] <derick@deploy2002> Started scap sync-world: Backport for [[gerrit:1199074|Make wgVectorMaxWidthOptions specify Special:Userlogin correctly (T408447)]]

Mentioned in SAL (#wikimedia-operations) [2025-10-28T13:25:08Z] <derick@deploy2002> derick, matmarex: Backport for [[gerrit:1199074|Make wgVectorMaxWidthOptions specify Special:Userlogin correctly (T408447)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-10-28T13:32:10Z] <derick@deploy2002> Finished scap sync-world: Backport for [[gerrit:1199074|Make wgVectorMaxWidthOptions specify Special:Userlogin correctly (T408447)]] (duration: 10m 56s)

matmarex claimed this task.