Use turbo:click, not click
Otherwise Turbo falls back to a regular Browser navigation.
This commit is contained in:
@@ -7,7 +7,7 @@ module NotificationsHelper
|
||||
link_to notification.resource, id: dom_id(notification), class: "notification",
|
||||
data: {
|
||||
turbo_frame: "_top",
|
||||
action: "notifications--readings#record",
|
||||
action: "turbo:click->notifications--readings#record",
|
||||
notifications__readings_url_param: notification_readings_url(notification)
|
||||
}, &
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user