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"
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 @@
840
840
841
841
// Add a <link rel="canonical"> tag
842
842
$wgOut->addLink( array( 'rel' => 'canonical',
843
- 'href' => $this->mTitle->getFullURL() )
843
+ 'href' => $this->mTitle->getLocalURL() )
844
844
);
845
845
$wasRedirected = true;
846
846
}
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r47217
Add a <link rel="canonical"> tag on redirected page views per <
http://googlew...
catrope
16:17, 13 February 2009
Status & tagging log
23:09, 17 February 2009
Aaron Schulz
(
talk
|
contribs
)
changed the
status
of r47388
[
removed:
new
added:
ok]