summaryrefslogtreecommitdiff
path: root/inc/html.php
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2013-08-01 16:32:28 +0200
committerChristopher Smith <chris@jalakai.co.uk>2013-08-01 16:32:28 +0200
commitb1af90141d42f8844159ff4fad76968a8ee78687 (patch)
tree1ae0995e44bb87e2f753efb4b67c168c1d77c56e /inc/html.php
parent65f0aa62806695ee51cc94679913449b7ad862d6 (diff)
downloadrpg-b1af90141d42f8844159ff4fad76968a8ee78687.tar.gz
rpg-b1af90141d42f8844159ff4fad76968a8ee78687.tar.bz2
Improve nofollow behaviour for ?do=index
In response to FS#2766 - make namespace links in the browser sitemap nofollow - remove nofollow from browser sitemap link on the wiki start page when sitemap.xml generation is disabled
Diffstat (limited to 'inc/html.php')
-rw-r--r--inc/html.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/html.php b/inc/html.php
index 53f4c45ff..53a100ec7 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -859,7 +859,8 @@ function html_list_index($item){
$base = ':'.$item['id'];
$base = substr($base,strrpos($base,':')+1);
if($item['type']=='d'){
- $ret .= '<a href="'.wl($ID,'idx='.rawurlencode($item['id'])).'" title="' . $item['id'] . '" class="idx_dir"><strong>';
+ // FS#2766, no need for search bots to follow namespace links in the index
+ $ret .= '<a href="'.wl($ID,'idx='.rawurlencode($item['id'])).'" title="' . $item['id'] . '" class="idx_dir" rel="nofollow"><strong>';
$ret .= $base;
$ret .= '</strong></a>';
}else{