MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onTestCanonicalRedirect ( $request, $title, $output) | |
This hook is called when about to force a redirect to a canonical URL for a title when we have no other parameters on the URL. | |
Stable to implement.
Definition at line 13 of file TestCanonicalRedirectHook.php.
MediaWiki\Hook\TestCanonicalRedirectHook::onTestCanonicalRedirect | ( | $request, | |
$title, | |||
$output | |||
) |
This hook is called when about to force a redirect to a canonical URL for a title when we have no other parameters on the URL.
Use this hook to alter page view behavior radically to abort that redirect or handle it manually.
WebRequest | $request | |
Title | $title | Title of the currently found Title object |
OutputPage | $output |
Implemented in MediaWiki\HookContainer\HookRunner.