Posted by Propeller on June 2, 2010 at 1:02am
2 followers
Jump to:
| Project: | Noindex External Links |
| Version: | 6.x-1.2 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Собственно, сабж. Почему бы не добавить target="_blank" в дополнение к rel="nofollow"?
По-моему, это весьма актуально для ссылок на сторонние ресурсы, разве это не так?
Comments
#1
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.