Add in a 'TestCanonicalRedirect' hook to be called when about to make a redirect...
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 19 Sep 2011 23:14:52 +0000 (23:14 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 19 Sep 2011 23:14:52 +0000 (23:14 +0000)
commit7da1d55a84ada91e144dd71675f368826bc7590b
tree44e5da620a1029d58d5765ede08ec8f7ca75b137
parentbf224c75c09c8fcde555b5261406654da24818b5
Add in a 'TestCanonicalRedirect' hook to be called when about to make a redirect to the canonical page form of a regular page view. Some extensions such as MobileProfile may need to modify this logic to prevent incorrect redirects, such as on alternate en.m.wikipedia.org domain, where we'd want to either skip it or rewrite to the alternate domain.

Support for resolving bug 31012.
docs/hooks.txt
includes/Wiki.php