From d52830947d12678f3f4f28e5fbcd65759b9d1de2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20Dziewo=C5=84ski?= Date: Wed, 27 Sep 2017 23:41:47 +0200 Subject: [PATCH] Consistently preserve anchors in the title specified in 'mainpage' message When 'mainpage' was used in the 'sidebar' message, the anchor would be preserved (code in Skin::addToSidebarPlain() uses Title::getLinkURL()). When 'mainpage' was used on its own in Skin::makeMainPageUrl() (which is used in SkinTemplate::buildNavUrls(), and many skins use that data to generate the logo link), it would not be preserved (the code used Title::getLocalURL()). Bug: T176583 Change-Id: Icc4895c08089caaa06e37ce765819829b90de0ff --- includes/skins/Skin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/skins/Skin.php b/includes/skins/Skin.php index 8fb0d1c091..167b49d9f3 100644 --- a/includes/skins/Skin.php +++ b/includes/skins/Skin.php @@ -1095,7 +1095,7 @@ abstract class Skin extends ContextSource { $title = Title::newMainPage(); self::checkTitle( $title, '' ); - return $title->getLocalURL( $urlaction ); + return $title->getLinkURL( $urlaction ); } /** -- 2.20.1