From ae9e295c64cb784072695d1f5f806d3e0b990856 Mon Sep 17 00:00:00 2001 From: Amir Sarabadani Date: Sun, 9 Oct 2016 02:22:52 +0330 Subject: [PATCH] Do not normalise external links to special pages Bug: T147685 Change-Id: I0ec004b3f7194696eaca9541d336b061602e36df --- includes/Linker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1