dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88af89d
)
Follow-up to r47217 "Add a <link rel="canonical"> tag on redirected page views per...
author
Brion Vibber
<brion@users.mediawiki.org>
Tue, 17 Feb 2009 22:51:19 +0000
(22:51 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Tue, 17 Feb 2009 22:51:19 +0000
(22:51 +0000)
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
patch
|
blob
|
history
diff --git
a/includes/Article.php
b/includes/Article.php
index
e3c5706
..
eeaca04
100644
(file)
--- a/
includes/Article.php
+++ b/
includes/Article.php
@@
-839,7
+839,7
@@
class Article {
// Add a <link rel="canonical"> tag
$wgOut->addLink( array( 'rel' => 'canonical',
- 'href' => $this->mTitle->get
Ful
lURL() )
+ 'href' => $this->mTitle->get
Loca
lURL() )
);
$wasRedirected = true;
}