mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-10 21:26:07 +10:00
Add noreferrer value to rel attribute for external links
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user