Manual:Hooks/GetLocalURL

Details

 * : Title object of page
 * : string value as output (out parameter, can modify)
 * : query options passed to

Usage
This hook can be used to alter the canonical URL of pages under specific circumstances. This is useful for instance since (MediaWiki 1.26) made MediaWiki automatically redirect from non-standard to canonical URLs. See an example usage at