Skip to content

Commit 0c2c7f7

Browse files
committed
Make stories index view button pass param to open show page rather than external link
1 parent 56bf59d commit 0c2c7f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/views/stories/index.html.erb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@
6868
</td>
6969
<td class="px-4 py-2 text-sm text-gray-500"><%= story.updated_at.strftime("%b %d, %Y") %></td>
7070
<td class="px-4 py-2 text-sm text-gray-500">
71-
<%= link_to "View", story_path(story),
71+
<%= link_to "View",
72+
story_path(story, no_redirect: true),
7273
target: story.external_link? ? "_blank" : "", rel: "noopener noreferrer",
7374
class: "btn btn-secondary-outline" %>
7475
<% if current_user.super_user? %>

0 commit comments

Comments
 (0)