Create a Special:Redirect page.
authorC. Scott Ananian <cscott@cscott.net>
Sat, 13 Apr 2013 01:52:05 +0000 (21:52 -0400)
committerC. Scott Ananian <cscott@cscott.net>
Tue, 30 Apr 2013 17:40:54 +0000 (13:40 -0400)
commit2849d8a6b3542795d230515a600670533adb2692
treee7dc47e4b20ccee779a26307344985b314b6ea5a
parent91d90c5b86aa39b3ab6fc41a3afa9f42fad2d34e
Create a Special:Redirect page.

The primary purpose of this page is to redirect to a user page given a
numeric id.  The numeric User ID is stable across renames, and is
therefore an appropriate primary key for identifying the user
associated with a given revision.  The Parsoid API would like to
export semantic RDFa in its DOM identifying the author of a revision
by their userid, but in order to do so requires a MW redirect from
userid to the appropriate User page.  (A "permalink" for the user.)

This patch adds that redirect, as
  http://somewiki/Special:Redirect/user/1234

(https://bugzilla.wikimedia.org/show_bug.cgi?id=45206 is the related
Parsoid feature.)

Rather than adding a set of ad-hoc redirection pages, this patch
sets up an infrastructure for redirections.  Special:Redirect also
subsumes the functions of:

* Special:Filepath (Special:Redirect/file/xxxx)
* Special:PermanentLink (Special:Redirect/revision/xxxxx)

This structure is extensible for other redirect types.

Change-Id: I8b0785f4fbdb3dd438a7a45263c5f375ff9d2208
includes/AutoLoader.php
includes/DefaultSettings.php
includes/SpecialPageFactory.php
includes/specials/SpecialRedirect.php [new file with mode: 0644]
languages/messages/MessagesEn.php
languages/messages/MessagesQqq.php
maintenance/language/messages.inc