Add rel="noopener noreferrer"
to links with `target="_blank"`
This commit is contained in:
parent
9c7f695790
commit
672607585e
2 changed files with 8 additions and 2 deletions
|
@ -26,7 +26,10 @@
|
||||||
<% if contact.link.nil? %>
|
<% if contact.link.nil? %>
|
||||||
<%= truncate contact.value %>
|
<%= truncate contact.value %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to truncate(contact.value), contact.link, target: :_blank %>
|
<%= link_to truncate(contact.value),
|
||||||
|
contact.link,
|
||||||
|
target: :_blank,
|
||||||
|
rel: 'noopener noreferrer' %>
|
||||||
<i class="fas fa-external-link-alt fa-xs text-muted"></i>
|
<i class="fas fa-external-link-alt fa-xs text-muted"></i>
|
||||||
<% end %>
|
<% end %>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -18,7 +18,10 @@
|
||||||
<% if contact.link.nil? %>
|
<% if contact.link.nil? %>
|
||||||
<%= truncate contact.value %>
|
<%= truncate contact.value %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to truncate(contact.value), contact.link, target: :_blank %>
|
<%= link_to truncate(contact.value),
|
||||||
|
contact.link,
|
||||||
|
target: :_blank,
|
||||||
|
rel: 'noopener noreferrer' %>
|
||||||
<i class="fas fa-external-link-alt fa-xs text-muted"></i>
|
<i class="fas fa-external-link-alt fa-xs text-muted"></i>
|
||||||
<% end %>
|
<% end %>
|
||||||
</td>
|
</td>
|
||||||
|
|
Reference in a new issue