summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
authorGerrit Uitslag <klapinklapin@gmail.com>2014-09-01 17:50:53 +0200
committerGerrit Uitslag <klapinklapin@gmail.com>2014-09-01 17:50:53 +0200
commit4ee26d168041bbef46b545d95808572b3f831043 (patch)
tree94f4c798d891b5ae6efe60151d3376384bedac30 /inc/template.php
parent65833968962f86342542bf9d52f9cdcb7f595379 (diff)
parent12e60eea4f8a0a84213b972847203e57e590c59b (diff)
downloadrpg-4ee26d168041bbef46b545d95808572b3f831043.tar.gz
rpg-4ee26d168041bbef46b545d95808572b3f831043.tar.bz2
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'inc/template.php')
-rw-r--r--inc/template.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/inc/template.php b/inc/template.php
index 8b39529c5..7f3c68534 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -369,7 +369,11 @@ function tpl_metaheaders($alt = true) {
} else {
$head['meta'][] = array('name'=> 'robots', 'content'=> 'noindex,nofollow');
}
- $head['link'][] = array('rel'=> 'canonical', 'href'=> wl($ID, '', true, '&'));
+ $canonicalUrl = wl($ID, '', true, '&');
+ if ($ID == $conf['start']) {
+ $canonicalUrl = DOKU_URL;
+ }
+ $head['link'][] = array('rel'=> 'canonical', 'href'=> $canonicalUrl);
} else {
$head['meta'][] = array('name'=> 'robots', 'content'=> 'noindex,follow');
}