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:
parent
88af89dab2
commit
8d9243cf34
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue