88 parent::__construct( $name );
92 # Options for preloaded edits
93 'preload',
'preloadparams',
'editintro',
'preloadtitle',
'summary',
'nosummary',
94 # Options for overriding user settings
95 'preview',
'minor',
'watchthis',
96 # Options for history/diffs
97 'section',
'oldid',
'diff',
'dir',
98 'limit',
'offset',
'feed',
101 # Options for action=raw; missing ctype can break JS or CSS in some browsers
102 'ctype',
'maxage',
'smaxage',
105 $this->
getHookRunner()->onRedirectSpecialArticleRedirectParams( $redirectParams );
106 $this->mAllowedRedirectParams = $redirectParams;
113 $query = parent::getRedirectQuery( $subpage );
118 $query && isset( $query[
'action'] ) && isset( $query[
'redlink'] ) &&
119 ( $query[
'action'] ===
'edit' || $query[
'action'] ===
'submit' ) &&
120 (
bool)$query[
'redlink'] &&
121 $title instanceof
Title &&
132class_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.