Available from version 1.6.0
Used to modify fully-qualified URLs used in redirects/export/offsite data
Define function:
public static function onGetFullURL( $title, $url, $query ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"GetFullURL": "MyExtensionHooks::onGetFullURL"

For MediaWiki ≤1.25:

$wgHooks['GetFullURL'][] = 'MyExtensionHooks::onGetFullURL';
Called from:File(s): Title.php
Function(s): Title::getFullURL()

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:GetFullURL extensions.


  • $title: Title object of page
  • $url: string value as output (out parameter, can modify)
  • $query: query options passed to Title::getFullURL()