Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Собственно, сабж. Почему бы не добавить target="_blank" в дополнение к rel="nofollow"?
По-моему, это весьма актуально для ссылок на сторонние ресурсы, разве это не так?
Comments
Comment #1
mibfire CreditAttribution: mibfire commentedIt would be good if there will be a possibility to choose to add target="_blank" to nofollow links.
for example
if (strpos($attr, 'nofollow') === FALSE) {
if (strpos($attr, 'target') === FALSE) {
$attr .= ' target="_blank" ';
}
if (strpos($attr, 'rel="') === FALSE) $attr = $attr .' rel="nofollow" ';
else $attr = preg_replace('!rel="([^"]+)"!', 'rel="${1} nofollow"', $attr);
}
and it would be optional.
Comment #2
ftomivec CreditAttribution: ftomivec commentedСтрока 222
просто заменил код
почистил кеш и все ссылки стали через бланк
Comment #3
SimonLitt CreditAttribution: SimonLitt commentedComment #4
SimonLitt CreditAttribution: SimonLitt commentedThis module only deny indexing.