diff --git a/fruitlinkit/models/FruitLinkIt_LinkModel.php b/fruitlinkit/models/FruitLinkIt_LinkModel.php index 2e49b72..d58878b 100644 --- a/fruitlinkit/models/FruitLinkIt_LinkModel.php +++ b/fruitlinkit/models/FruitLinkIt_LinkModel.php @@ -56,6 +56,10 @@ public function getHtmlLink($attributes = false) if( ( !is_array($attributes) || !array_key_exists('title', $attributes) ) && $this->target ) { $htmlLink .= ' target="'.$this->target.'"'; + + if ($this->target == '_blank') { + $htmlLink .= ' rel="noopener"'; + } } // Add Attributes