[openstreetmap/openstreetmap-website] Set search input value when searching for coordinates (PR #5001)

Anton Khorev notifications at github.com
Thu Jul 18 12:05:41 UTC 2024


Fixes setting search input value after full page reloads that only seems to work because of [autocompletion](https://github.com/openstreetmap/openstreetmap-website/pull/4959#issuecomment-2233238733).

`_search.html.erb` fills the input with `params[:query]` which is not going to exist after `normalize_params`.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/5001

-- Commit Summary --

  * Set search input value when searching for coordinates

-- File Changes --

    M app/views/layouts/_search.html.erb (8)
    M test/system/search_test.rb (18)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/5001.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5001.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5001
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5001 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240718/8c688c0e/attachment.htm>


More information about the rails-dev mailing list