102 parent::__construct( $name );
105 'redirect',
'rdfrom',
106 # Options for preloaded edits
107 'preload',
'preloadparams',
'editintro',
'preloadtitle',
'summary',
'nosummary',
108 # Options for overriding user settings
109 'preview',
'minor',
'watchthis',
110 # Options for history/diffs
111 'section',
'oldid',
'diff',
'dir',
112 'limit',
'offset',
'feed',
115 # Options for action=raw; missing ctype can break JS or CSS in some browsers
116 'ctype',
'maxage',
'smaxage',
119 $this->
getHookRunner()->onRedirectSpecialArticleRedirectParams( $redirectParams );
120 $this->mAllowedRedirectParams = $redirectParams;
127 $query = parent::getRedirectQuery( $subpage );
132 $query && isset( $query[
'action'] ) && isset( $query[
'redlink'] ) &&
133 ( $query[
'action'] ===
'edit' || $query[
'action'] ===
'submit' ) &&
134 (
bool)$query[
'redlink'] &&
135 $title instanceof
Title &&
146class_alias( RedirectSpecialArticle::class,
'RedirectSpecialArticle' );
Helper for any RedirectSpecialPage which redirects the user to a particular article (as opposed to us...
getRedirectQuery( $subpage)
Return part of the request string for a special redirect page This allows passing,...
Shortcut to construct a special page alias.
getRedirect( $subpage)
If the special page is a redirect, then get the Title object it redirects to.