From 3f7d1e3601418d53606afbeacb16d89198957b7a Mon Sep 17 00:00:00 2001 From: jdlrobson Date: Tue, 26 Feb 2019 10:24:42 -0800 Subject: [PATCH] Return to link is not needed in AMC mode on talk pages The tabs render this unnecessary Bug: T212216 Change-Id: Ibb19448529a43bb542eb112ff3b113ca0c3749a4 --- includes/skins/SkinMinerva.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/skins/SkinMinerva.php b/includes/skins/SkinMinerva.php index 9d3c142..348b55f 100644 --- a/includes/skins/SkinMinerva.php +++ b/includes/skins/SkinMinerva.php @@ -197,7 +197,9 @@ class SkinMinerva extends SkinTemplate { $title = $this->getTitle(); // If it's a talk page, add a link to the main namespace page - if ( $title->isTalkPage() ) { + // In AMC we do not need to do this as there is an easy way back to the article page + // via the talk/article tabs. + if ( $title->isTalkPage() && !$this->getSkinOption( self::OPTION_AMC ) ) { // if it's a talk page for which we have a special message, use it switch ( $title->getNamespace() ) { case NS_USER_TALK: