Introduce Special:RedirectExternal
authorKosta Harlan <kharlan@wikimedia.org>
Wed, 17 Oct 2018 17:35:57 +0000 (13:35 -0400)
committerRoan Kattouw <roan.kattouw@gmail.com>
Wed, 17 Oct 2018 21:52:09 +0000 (14:52 -0700)
commitb83cf88837d589ae82a41fffb68dd82855aff2e5
tree86d10971a4e7a869b012be2d173d20cf642a9121
parent6cb3fa392f5772f9e5e7b4b4769da1ba4cfda891
Introduce Special:RedirectExternal

Special:RedirectExternal is an unlisted special page that accepts a URL as
the first argument, and redirects the user to that page.
Example: Special:RedirectExternal/https://mediawiki.org

At the moment, this is intended to be used by the GrowthExperiments project in
order to track outbound visits to certain external links. But it could be
extended in the future to provide parameters for showing a message to the user
before redirecting, or explicitly requiring a user to click on the link, which
could help improve security when users follow on-wiki links to off-wiki sites.

Bug: T207115
Change-Id: I822af14a84569aab22249e2f16a662a60e60f76a
autoload.php
includes/specialpage/SpecialPageFactory.php
includes/specials/SpecialRedirectExternal.php [new file with mode: 0644]
languages/i18n/en.json
languages/i18n/qqq.json
languages/messages/MessagesEn.php
tests/phpunit/includes/specials/SpecialRedirectExternalTest.php [new file with mode: 0644]