Include filter in pagination
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user