Include filter in pagination

This commit is contained in:
Jason Zimdars
2025-05-21 22:05:04 -05:00
parent d79f2f903f
commit cbfe2ae2bc
+5 -1
View File
@@ -43,7 +43,11 @@ module EventsHelper
def event_next_page_link(next_day)
if next_day
tag.div id: "next_page",
data: { controller: "fetch-on-visible", fetch_on_visible_url_value: events_days_path(day: next_day.strftime("%Y-%m-%d")) }
data: { controller: "fetch-on-visible",
fetch_on_visible_url_value: events_days_path(
day: next_day.strftime("%Y-%m-%d"),
**@filter.as_params
) }
end
end