FIX: Don't use `target=_blank` for local oneboxes
This commit is contained in:
parent
a77c0f2265
commit
b5bead1fe3
|
@ -214,7 +214,7 @@ GEM
|
|||
omniauth-twitter (1.3.0)
|
||||
omniauth-oauth (~> 1.1)
|
||||
rack
|
||||
onebox (1.8.11)
|
||||
onebox (1.8.12)
|
||||
fast_blank (>= 1.0.0)
|
||||
htmlentities (~> 4.3)
|
||||
moneta (~> 1.0)
|
||||
|
|
|
@ -5,7 +5,7 @@ describe Onebox::Engine::DiscourseLocalOnebox do
|
|||
before { SiteSetting.external_system_avatars_enabled = false }
|
||||
|
||||
def build_link(url)
|
||||
%|<a href="#{url}" target="_blank" rel="nofollow noopener">#{url}</a>|
|
||||
%|<a href="#{url}" rel="nofollow noopener">#{url}</a>|
|
||||
end
|
||||
|
||||
context "for a link to a post" do
|
||||
|
|
Loading…
Reference in New Issue