FIX: Don't use `target=_blank` for local oneboxes

This commit is contained in:
Robin Ward 2017-06-09 12:15:09 -04:00
parent a77c0f2265
commit b5bead1fe3
2 changed files with 2 additions and 2 deletions

View File

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

View File

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