Merge "Revert r47388 / 8d9243cf3: Use Title::getLocalURL() for rel=canonical links"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 24 Jun 2015 16:05:11 +0000 (16:05 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 24 Jun 2015 16:05:11 +0000 (16:05 +0000)
includes/page/Article.php

index 450251a..053753e 100644 (file)
@@ -1000,7 +1000,7 @@ class Article implements Page {
                                $outputPage->addModules( 'mediawiki.action.view.redirect' );
 
                                // Add a <link rel="canonical"> tag
-                               $outputPage->setCanonicalUrl( $this->getTitle()->getLocalURL() );
+                               $outputPage->setCanonicalUrl( $this->getTitle()->getCanonicalURL() );
 
                                // Tell the output object that the user arrived at this article through a redirect
                                $outputPage->setRedirectedFrom( $this->mRedirectedFrom );