summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2015-09-07 18:54:23 +0100
committerGreg Roach <fisharebest@gmail.com>2015-09-07 18:54:23 +0100
commitfd6f94c11dad5a6f86d988b219d2cf39e2a007a0 (patch)
treeaec429d7e52e4925601bd6a5cfce0de91e2d6143
parent863a68b980348cd43f40deb5d3d3902707b6776a (diff)
downloadwebtrees-fd6f94c11dad5a6f86d988b219d2cf39e2a007a0.tar.gz
webtrees-fd6f94c11dad5a6f86d988b219d2cf39e2a007a0.tar.bz2
webtrees-fd6f94c11dad5a6f86d988b219d2cf39e2a007a0.zip
Fix #720 - ajax links require rel=nofollow
-rw-r--r--individual.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/individual.php b/individual.php
index 27f209d065..d9bfbfc354 100644
--- a/individual.php
+++ b/individual.php
@@ -220,15 +220,16 @@ foreach ($controller->tabs as $tab) {
$greyed_out = '';
}
if ($tab->hasTabContent()) {
- echo '<li class="' . $greyed_out . '"><a href="';
+ echo '<li class="' . $greyed_out . '"><a';
if ($tab->canLoadAjax()) {
// AJAX tabs load only when selected
- echo $controller->record->getHtmlUrl(), '&amp;action=ajax&amp;module=', $tab->getName();
+ echo ' href="' . $controller->record->getHtmlUrl(), '&amp;action=ajax&amp;module=', $tab->getName() . '"';
+ echo ' rel="nofollow"';
} else {
// Non-AJAX tabs load immediately
- echo '#', $tab->getName();
+ echo ' href="#', $tab->getName() . '"';
}
- echo '" title="', $tab->getDescription(), '">', $tab->getTitle(), '</a></li>';
+ echo ' title="', $tab->getDescription(), '">', $tab->getTitle(), '</a></li>';
}
}
echo '</ul>';