From 87ed533b2e2354f2030ba08bc918087b3c573a67 Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Fri, 12 Sep 2025 12:10:56 +0200 Subject: [PATCH] Fix: filtering collections not working after moving menu to turbo frame --- app/views/filters/menu/_collections.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/filters/menu/_collections.html.erb b/app/views/filters/menu/_collections.html.erb index 0375ff705..8a3e0402a 100644 --- a/app/views/filters/menu/_collections.html.erb +++ b/app/views/filters/menu/_collections.html.erb @@ -1,7 +1,7 @@ -<%= form_with url: user_filtering.self_filter_path, method: :get, class: "display-contents", +<% # Using method: :get inside Turbo frame triggers some special Turbo handling where the script_name is lost %> +<%= form_with url: user_filtering.self_filter_path(script_name: Account.sole.slug), method: :get, class: "display-contents", data: { controller: "form" } do |form| %> <% if user_filtering.collections.any? %> -