[03:55:39] tgr|away: thinking about T352798, two things come to mind: [03:55:40] T352798: Desktop view link on private wiki login required pages is broken - https://phabricator.wikimedia.org/T352798 [03:55:43] 1. maybe the MF footer link logic could use Title::newMainPage as its base if ctx title isSpecial('Badtitle'); [03:57:41] 2. It makes sense to me from a security perspective for MediaWiki.php to early on replace wgTitle on read permission fail to avoid leaking information somewhere. That makes it hard to get it back indeed. On the other hand, the core skin clsss seems to manage fine with the login link. Maybe we can reuse that. Eg https://collab.wikimedia.org/wiki/Development points to the broken [03:57:41] https://collab.m.wikimedia.org/w/index.php?title=Special:Badtitle&mobileaction=toggle_view_mobile in the footer, but login link is https://collab.wikimedia.org/w/index.php?title=Special:UserLogin&returnto=Development [03:57:51] Which preserves the original title it seems