diff --git a/app/views/trestle/search/_search.html.erb b/app/views/trestle/search/_search.html.erb index 926562a..a775ffc 100644 --- a/app/views/trestle/search/_search.html.erb +++ b/app/views/trestle/search/_search.html.erb @@ -7,7 +7,7 @@ <%= search_field_tag :q, params[:q], class: "form-control", autocomplete: "off", placeholder: admin.t("search.placeholder", default: "Search") %> - <%= link_to icon("fas fa-times"), admin.path(nil, persistent_params.except(:q)), class: "btn btn-clear-search", data: { turbo_frame: "main" } if params[:q].present? %> + <%= link_to icon("fas fa-times"), persistent_params.except(:q), class: "btn btn-clear-search", data: { turbo_frame: "main" } if params[:q].present? %> <% end %>