From 31ac7950ce8d05dd406243818ffcf149ba02a92f Mon Sep 17 00:00:00 2001 From: Kevin McConnell Date: Fri, 10 Jan 2025 15:34:58 +0000 Subject: [PATCH] Use turbo:click, not click Otherwise Turbo falls back to a regular Browser navigation. --- app/helpers/notifications_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/notifications_helper.rb b/app/helpers/notifications_helper.rb index 33a49f23a..9f84bd4b7 100644 --- a/app/helpers/notifications_helper.rb +++ b/app/helpers/notifications_helper.rb @@ -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