Add noreferrer value to rel attribute for external links
This commit is contained in:
parent
2ade37e253
commit
dbe06ac790
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ module Banzai
|
|||
# Skip internal links
|
||||
next if link.start_with?(internal_url)
|
||||
|
||||
node.set_attribute('rel', 'nofollow')
|
||||
node.set_attribute('rel', 'nofollow noreferrer')
|
||||
end
|
||||
|
||||
doc
|
||||
|
|
Loading…
Reference in a new issue