@@ -14,16 +14,17 @@ overflow-hidden flex flex-col md:flex-row">
1414 < div class ="text-sm text-gray-500 font-medium pt-2 ">
1515 <% if activity . respond_to? ( :created_by ) && activity . created_by . present? %>
1616 by <%= link_to activity . created_by . full_name ,
17- user_path ( activity . created_by ) ,
18- class : "hover:underline" %>
17+ user_path ( activity . created_by ) ,
18+ data : { turbo_prefetch : false } ,
19+ class : "hover:underline" %>
1920 <% end %>
2021 </ div >
2122 <% end %>
2223 </ div >
2324
2425 < div class ="w-20 bg-white flex items-top justify-center pt-3 ">
2526 <% if main_image_url ( activity . object ) . present? %>
26- <%= link_to polymorphic_path ( activity . object ) do %>
27+ <%= link_to polymorphic_path ( activity . object ) , data : { turbo_prefetch : false } do %>
2728 < img src ="<%= main_image_url ( activity . object ) %> "
2829 alt =""
2930 class ="w-20 h-16 object-cover rounded ">
@@ -36,16 +37,13 @@ overflow-hidden flex flex-col md:flex-row">
3637 </ div >
3738
3839 < div class ="flex-1 p-4 ">
39- <% if activity . object . is_a? ( Resource ) || activity . object . is_a? ( Address ) %>
40- <% path = activity . url || resource_path ( activity ) %>
41- <% else %>
42- <% path = polymorphic_path ( activity ) %>
43- <% end %>
40+ <% path = polymorphic_path ( activity ) %>
4441
4542 <%= link_to path , class : "hover:underline" do %>
4643 < h3 class ="text-lg font-semibold text-gray-900 ">
4744 <%= link_to activity . title ,
4845 path ,
46+ data : { turbo_prefetch : false } ,
4947 class : "hover:underline" %>
5048 </ h3 >
5149
@@ -57,6 +55,7 @@ overflow-hidden flex flex-col md:flex-row">
5755 <% if activity . object . is_a? ( Resource ) && activity . download_attachment &.file &.attached? %>
5856 <%= link_to raw ( "<span class='fa fa-download'></span>" ) ,
5957 resource_download_path ( activity ) ,
58+ data : { turbo_prefetch : false } ,
6059 class : "btn btn-utility" %>
6160 <% end %>
6261 </ div >
0 commit comments