Skip to content

Commit a2fc8c2

Browse files
committed
do not intercept attachment anchor links with turbo
1 parent c8bc118 commit a2fc8c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/views/topics/attachments_sidebar.html.slim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
- @attachment_messages.sort_by(&:created_at).reverse_each do |msg|
55
- number = @message_numbers[msg.id]
66
li
7-
= link_to "#message-#{msg.id}-attachments", class: "attachment-link" do
7+
= link_to "#message-#{msg.id}-attachments", class: "attachment-link", data: { turbo: false } do
88
span.attachment-target = "##{number}"
99
span.attachment-date = smart_time_display(msg.created_at)
1010
- names = msg.attachments.map(&:file_name)

0 commit comments

Comments
 (0)