|
MediaWiki REL1_35
|
Stable to implement. More...

Public Member Functions | |
| onSpecialSearchGoResult ( $term, $title, &$url) | |
| Use this hook to alter the behaviour of the 'go' feature when searching. | |
Stable to implement.
Definition at line 11 of file SpecialSearchGoResultHook.php.
| MediaWiki\Hook\SpecialSearchGoResultHook::onSpecialSearchGoResult | ( | $term, | |
| $title, | |||
| & | $url | ||
| ) |
Use this hook to alter the behaviour of the 'go' feature when searching.
If a hook returns false the 'go' feature will be canceled and a normal search will be performed. Returning true without setting $url does a standard redirect to $title. Setting $url redirects to the specified URL.
| string | $term | The string the user searched for |
| Title | $title | The title the 'go' feature has decided to forward the user to |
| string | null | &$url | Initially null, hook subscribers can set this to specify the final url to redirect to |
Implemented in MediaWiki\HookContainer\HookRunner.