From 8d9243cf34f1f9ffa3be145349e4c6edae4a5b7a Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 17 Feb 2009 22:51:19 +0000 Subject: [PATCH] Follow-up to r47217 "Add a tag on redirected page views per http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html" We can use a relative link in the HTML here and save a few bytes of output; consumer is required to be able to expand relative links it finds here. --- includes/Article.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Article.php b/includes/Article.php index e3c57066b1..eeaca044eb 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -839,7 +839,7 @@ class Article { // Add a tag $wgOut->addLink( array( 'rel' => 'canonical', - 'href' => $this->mTitle->getFullURL() ) + 'href' => $this->mTitle->getLocalURL() ) ); $wasRedirected = true; } -- 2.20.1