Skip to content

Commit edcbb6a

Browse files
committed
Add 'target' keyword to arg
1 parent 76b7471 commit edcbb6a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/views/community_news/index.html.erb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@
4242
<%= link_to (image_tag news.main_image.file,
4343
class: "w-full rounded shadow-sm border border-gray-200",
4444
alt: news.title),
45-
news.link_target, news.external_link? ? "_blank" : "", rel: "noopener noreferrer" %>
45+
news.link_target,
46+
target: news.external_link? ? "_blank" : "",
47+
rel: "noopener noreferrer" %>
4648
<% else %>
4749
<svg class="w-6 h-6 text-gray-400"
4850
fill="currentColor" viewBox="0 0 20 18"></svg>

0 commit comments

Comments
 (0)