51 if ( $redirect instanceof
Title ) {
53 $url = $redirect->getFullUrlForRedirect( $query );
55 } elseif ( $redirect ===
true ) {
85 foreach ( array_merge( $this->mAllowedRedirectParams,
86 [
'uselang',
'useskin',
'variant',
'debug',
'safemode' ]
88 if ( $request->getVal( $arg,
null ) !==
null ) {
89 $params[$arg] = $request->getVal( $arg );
90 } elseif ( $request->getArray( $arg,
null ) !==
null ) {
91 $params[$arg] = $request->getArray( $arg );
95 foreach ( $this->mAddedRedirectParams as $arg => $val ) {
99 return count( $params )
121 $class = static::class;
122 throw new LogicException(
"RedirectSpecialPage $class doesn't redirect!" );
130 class_alias( RedirectSpecialPage::class,
'RedirectSpecialPage' );
wfAppendQuery( $url, $query)
Append a query string to an existing URL, which may or may not already have query string parameters a...
wfScript( $script='index')
Get the URL path to a MediaWiki entry point.
Shortcut to construct a special page alias.
getRedirect( $subpage)
If the special page is a redirect, then get the Title object it redirects to.
array $mAllowedRedirectParams
Query parameters that can be passed through redirects.
personallyIdentifiableTarget()
Indicate if the target of this redirect can be used to identify a particular user of this wiki (e....
getRedirectQuery( $subpage)
Return part of the request string for a special redirect page This allows passing,...
array $mAddedRedirectParams
Query parameters added by redirects.
getRequest()
Get the WebRequest being used for this instance.
getOutput()
Get the OutputPage being used for this instance.
Shortcut to construct a special page which is unlisted by default.