$out->redirect( $url );
return;
}
+ // No match. If it could plausibly be a title
+ // run the No go match hook.
+ $title = Title::newFromText( $term );
+ if ( !is_null( $title ) ) {
+ Hooks::run( 'SpecialSearchNogomatch', [ &$title ] );
+ }
}
$this->setupPage( $term );
return null;
}
- return $url === null ? $title->getFullURL() : $url;
+ return $url === null ? $title->getFullUrlForRedirect() : $url;
}
/**