Hi,
My extension, Semantic Forms, changes the URL of certain "broken links" (AKA
red links). Up until now this has been done through a patch to the MediaWiki
code (specifically to the file "/includes/Linker.php"), but I want a real
solution. That is the new 'BrokenLink' I'm suggesting, which would involve
adding a single line to Linker.php. Around line 348, within
makeBrokenLinkObj(), under the line:
$u = $nt->escapeLocalURL( $q );
there would be added added the following:
wfRunHooks( 'BrokenLink', array( $nt, $query, &$u ));
Please let me know if you have any objections to the name of the hook, its
placement or anything else. If there are no responses or objections, I guess
I'll just feel free to add in the code myself (I've never modified MediaWiki
code before, but I suppose there's a first time for everything.)
-Yaron