Skip to content

Commit

Permalink
Add a way to keep locale querystring when click on search
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoocasali committed Nov 10, 2020
1 parent 6be9580 commit 22727f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/views/layouts/_search.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
= form_tag restrooms_path, class: "search-restrooms-form", method: :get do
= hidden_field_tag :lat, ""
= hidden_field_tag :long, ""
= hidden_field_tag :locale, params[:locale] || I18n.default_locale
.input-group
= text_field_tag :search, params[:search], class: "form-control search-bar", aria: {label: t("search_bar.enter_location")}
.input-group-btn
Expand Down

0 comments on commit 22727f9

Please sign in to comment.