use query_params

This commit is contained in:
Pete Matsyburka
2026-02-14 17:42:08 +02:00
parent 347be0137d
commit 40052a2d7c
6 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
<% end %>
<% if params[:q].present? %>
<div class="relative">
<a href="<%= url_for(params.to_unsafe_h.except(:q)) %>" title="<%= t('clear') %>" class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-auto text-neutral text-2xl font-extralight">
<a href="<%= url_for(params: request.query_parameters.except('q')) %>" title="<%= t('clear') %>" class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-auto text-neutral text-2xl font-extralight">
&times;
</a>
</div>