Follow-up to r47217 "Add a <link rel="canonical"> 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.
This commit is contained in:
Brion Vibber 2009-02-17 22:51:19 +00:00
parent 88af89dab2
commit 8d9243cf34

View file

@ -839,7 +839,7 @@ class Article {
// Add a <link rel="canonical"> tag
$wgOut->addLink( array( 'rel' => 'canonical',
'href' => $this->mTitle->getFullURL() )
'href' => $this->mTitle->getLocalURL() )
);
$wasRedirected = true;
}