r47388 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47387‎ | r47388 | r47389 >
Date:22:51, 17 February 2009
Author:brion
Status:ok
Tags:
Comment:
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&quot;
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.
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -839,7 +839,7 @@
840840
841841 // Add a <link rel="canonical"> tag
842842 $wgOut->addLink( array( 'rel' => 'canonical',
843 - 'href' => $this->mTitle->getFullURL() )
 843+ 'href' => $this->mTitle->getLocalURL() )
844844 );
845845 $wasRedirected = true;
846846 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r47217Add a <link rel="canonical"> tag on redirected page views per <http://googlew...catrope16:17, 13 February 2009

Status & tagging log