Fix: filtering collections not working after moving menu to turbo frame

This commit is contained in:
Jorge Manrubia
2025-09-12 12:10:56 +02:00
parent 13cc12514a
commit 87ed533b2e
+2 -2
View File
@@ -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? %>
<ul class="popup__list">
<li class="popup__group-title">Collections</li>
<%= render "filters/menu/collections/all_option", form: form, user_filtering: user_filtering %>