Dont turbo stream when coming from a read_all redirect
This commit is contained in:
@@ -5,5 +5,10 @@ class NotificationsController < ApplicationController
|
||||
if @page.first?
|
||||
@unread = Current.user.notifications.unread.ordered
|
||||
end
|
||||
|
||||
respond_to do |format|
|
||||
format.turbo_stream if current_page_param
|
||||
format.html
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user