From eb2bec95fa4ef46668a756edc86d2b3d9b51f401 Mon Sep 17 00:00:00 2001 From: evazion Date: Mon, 14 Oct 2019 23:07:43 -0500 Subject: [PATCH] related tags: fix artist profile links not opening in new tab. --- app/views/related_tags/_source_tags.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/related_tags/_source_tags.html.erb b/app/views/related_tags/_source_tags.html.erb index 84c32f661..752a13679 100644 --- a/app/views/related_tags/_source_tags.html.erb +++ b/app/views/related_tags/_source_tags.html.erb @@ -19,10 +19,10 @@ <% artist.sorted_urls.each do |url| %>
  • <% if url.is_active %> - <%= external_link_to url.url, truncate: 64, strip: :scheme, link_options: {target: "_blank"} %> + <%= external_link_to url.url, truncate: 64, strip: :scheme, target: "_blank" %> <%= link_to tag.i(class: "fas fa-minus-circle"), artist_url_path(id: url.id, artist_url: { is_active: false }), remote: true, method: :put, "data-confirm": "This will mark the URL as inactive. Continue?" %> <% else %> - <%= external_link_to url.url, truncate: 64, strip: :scheme, link_options: {target: "_blank"} %> + <%= external_link_to url.url, truncate: 64, strip: :scheme, target: "_blank" %> <% end %>
  • <% end %>