From: Amir Sarabadani Date: Sat, 8 Oct 2016 22:52:52 +0000 (+0330) Subject: Do not normalise external links to special pages X-Git-Tag: 1.31.0-rc.0~5167^2 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=ae9e295c64cb784072695d1f5f806d3e0b990856;p=lhc%2Fweb%2Fwiklou.git Do not normalise external links to special pages Bug: T147685 Change-Id: I0ec004b3f7194696eaca9541d336b061602e36df --- diff --git a/includes/Linker.php b/includes/Linker.php index 9011f177de..d3d1f389af 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -319,7 +319,7 @@ class Linker { * @return LinkTarget */ public static function normaliseSpecialPage( LinkTarget $target ) { - if ( $target->getNamespace() == NS_SPECIAL ) { + if ( $target->getNamespace() == NS_SPECIAL && !$target->isExternal() ) { list( $name, $subpage ) = SpecialPageFactory::resolveAlias( $target->getDBkey() ); if ( !$name ) { return $target;