From 5d6f3f515663b4f499f41e9cfad1105280932e5b Mon Sep 17 00:00:00 2001 From: Adrien Maston Date: Thu, 18 Dec 2025 10:13:55 +0100 Subject: [PATCH] Allow search perma's form to target the whole page ... to pick up the url change and update --- app/views/bar/_bar.html.erb | 2 +- app/views/searches/_form.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/bar/_bar.html.erb b/app/views/bar/_bar.html.erb index 6d2014e12..3eb449598 100644 --- a/app/views/bar/_bar.html.erb +++ b/app/views/bar/_bar.html.erb @@ -8,7 +8,7 @@ <%= tag.dialog id: "bar-modal", class: "bar__modal", data: { diff --git a/app/views/searches/_form.html.erb b/app/views/searches/_form.html.erb index 11fcc853f..0ea00678f 100644 --- a/app/views/searches/_form.html.erb +++ b/app/views/searches/_form.html.erb @@ -1,4 +1,4 @@ -<%= form_with url: search_path, method: :get, class: "search__form flex align-center justify-center gap-half", data: { bar_target: "form", turbo_frame: "bar_content" } do |form| %> +<%= form_with url: search_path, method: :get, class: "search__form flex align-center justify-center gap-half", data: { bar_target: "form", turbo_frame: defined?(target_turbo_frame) ? target_turbo_frame : nil } do |form| %> <%= form.label :q, "Search Fizzy", class: "font-weight-black txt-nowrap" %> <%= text_field_tag :q, query_terms, class: "search__input input",