Summary
As described in T384010#10505638, links to Special:GlobalContributions from other contributions pages often lead to a nonexistent page error.
Background
We added links to Special:GlobalContributions from other contributions pages in T384010. Currently the links are always added. However, Special:GlobalContributions does not always exist.
Conditions for Special:GlobalContributions existing:
- Temporary accounts are known to the wiki
- GlobalPreferences extension is loaded
- CentralAuth extension is loaded
- (CheckUser extension must also be loaded, but the links are added via this extension, so we can ignore this condition when deciding whether to add links.)
User story
As a patroller who is looking at a user's contributions on some wiki, I want to see their contributions to all wikis.
Technical notes
The user story is being met on wikis that know about temporary accounts.
For wikis that don't know about temporary accounts, here's what's happening:
- Special:GlobalContributions isn't defined via onSpecialPage_initList: (code)
- The link is still added via onContributionsToolLinks: (code)
- When the user clicks on the link, they get a non-existent page error
Acceptance criteria
On a wikifarm where wikis are configured to redirect Special:GlobalContributions to a central wiki:
- The link to global contributions is added to contributions pages (when a target is defined) on all wikis with CentralAuth and GlobalPreferences
- The link to global contributions is added to the sidebar (on User and User Talk pages) on all wikis with CentralAuth and GlobalPreferences
- Clicking the link loads Special:GlobalContributions (for the relevant target), at the central wiki

