Собственно, сабж. Почему бы не добавить target="_blank" в дополнение к rel="nofollow"?
По-моему, это весьма актуально для ссылок на сторонние ресурсы, разве это не так?

Comments

mibfire’s picture

It 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.

ftomivec’s picture

Строка 222
просто заменил код

$link = '<a target="_blank" href="'. $match[2] .'" '. $attr .'>'. $match[4] .'</a>';

почистил кеш и все ссылки стали через бланк

SimonLitt’s picture

Version: 6.x-1.2 » 7.x-2.x-dev
Assigned: Unassigned » SimonLitt
Status: Active » Needs review
SimonLitt’s picture

Status: Needs review » Closed (won't fix)

This module only deny indexing.