Manual:Hooks/BeforePageRedirect

Gives a chance to override how the redirect is output by modifying, or by returning false and taking over the output.
 * : OutputPage object
 * : URL string, modifiable
 * : HTTP code (eg '301' or '302'), modifiable