diff --git a/inc/template.php b/inc/template.php
index 1dfa73955713202e233385bd268ea8abc90ff352..d97558ed1a242aab00312a75cb50f73edfd091d0 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -803,7 +803,7 @@ function tpl_youarehere($sep=' » '){
       if(!$title) $title = $parts[$i];
       tpl_link(wl($page),hsc($title),'title="'.$page.'"');
     }else{
-      tpl_link(wl($page),$parts[$i],'title="'.$page.'" class="wikilink2"');
+      tpl_link(wl($page),$parts[$i],'title="'.$page.'" class="wikilink2" rel="nofollow"');
     }
   }
 
@@ -817,7 +817,7 @@ function tpl_youarehere($sep=' » '){
     if(!$title) $title = $parts[$i];
     tpl_link(wl($page),hsc($title),'title="'.$page.'"');
   }else{
-    tpl_link(wl($page),$parts[$i],'title="'.$page.'" class="wikilink2"');
+    tpl_link(wl($page),$parts[$i],'title="'.$page.'" class="wikilink2" rel="nofollow"');
   }
   return true;
 }