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:
Javi Martín
2023-10-16 00:03:31 +02:00
parent 5aa56c054f
commit aeff8a0f31
9 changed files with 10 additions and 10 deletions

View File

@@ -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)