Skip to content

Commit

Permalink
[Regression] Menu item type url with rel attribute nofollow (#19949)
Browse files Browse the repository at this point in the history
* Menu item url attribute rel nofollow with target blank

* logic

* cs

* cs fix - thx Quy

* concat
  • Loading branch information
Devportobello authored and Michael Babker committed May 24, 2018
1 parent c18e3da commit cb775ed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/mod_menu/tmpl/default_url.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@
{
$attributes['target'] = '_blank';
$attributes['rel'] = 'noopener noreferrer';

if ($item->anchor_rel == 'nofollow')
{
$attributes['rel'] .= ' nofollow';
}
}
elseif ($item->browserNav == 2)
{
Expand Down

0 comments on commit cb775ed

Please sign in to comment.