This property was added together with `noopener` to protect users with older web
browsers that do not yet support `noopener`. The latter now is well-supported since
several years and in fact even is the default value in modern web browsers.
This allows us to drop the `noreferrer` from those links safely. Stripping the
`referer` header can be more reliably achieved with the `referrer-policy`
header that also gives the administrator more fine-grained control.
if (link.classList.contains('externalURL')) {
var rel = (link.rel === '') ? [] : link.rel.split(' ');
if (rel.indexOf('noopener') === -1) rel.push('noopener');
- if (rel.indexOf('noreferrer') === -1) rel.push('noreferrer');
link.rel = rel.join(' ');
}
$rel = 'nofollow';
if (EXTERNAL_LINK_TARGET_BLANK) {
- $rel .= ' noopener noreferrer';
+ $rel .= ' noopener';
$element->setAttribute('target', '_blank');
}
$rel = 'nofollow';
if (EXTERNAL_LINK_TARGET_BLANK) {
- $rel .= ' noopener noreferrer';
+ $rel .= ' noopener';
$attributes .= ' target="_blank"';
}
if ($isUgc) {
$attributes .= ' class="externalURL"';
$rel = 'nofollow';
if (EXTERNAL_LINK_TARGET_BLANK) {
- $rel .= ' noopener noreferrer';
+ $rel .= ' noopener';
$attributes .= 'target="_blank"';
}
if ($isUgc) {