Don't open auto links in a new tab
Just like we aren't opening any external links in a new tab, only, in this case, we don't even know whether these links are internal or external.
This commit is contained in:
@@ -10,7 +10,7 @@ module TextWithLinksHelper
|
||||
return if html.nil?
|
||||
raise "Could not add links because the content is not safe" unless html.html_safe?
|
||||
|
||||
raw Rinku.auto_link(html, :all, 'target="_blank" rel="nofollow"')
|
||||
raw Rinku.auto_link(html, :all, 'rel="nofollow"')
|
||||
end
|
||||
|
||||
def simple_format_no_tags_no_sanitize(html)
|
||||
|
||||
Reference in New Issue
Block a user