[openstreetmap/openstreetmap-website] Multiple elements with non-unique id (#2520)

mmd notifications at github.com
Sun Jan 26 17:00:22 UTC 2020


This seems to be related to partial  `app/views/layouts/_search.html.erb` being included twice in app/views/layouts/map.html.erb:

```
<% content_for :header do %>
  <%= render :partial => "layouts/search", :locals => { :autofocus => false } %>
<% end %>

<% content_for :content do %>
  <div id="sidebar">
    <%= render :partial => "layouts/search", :locals => { :autofocus => true } %>

```

Header level form was originally (re-)introduced in https://github.com/openstreetmap/openstreetmap-website/commit/dd12e1de637d5242c8ac7ed933fd8a3f70a70367

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/2520#issuecomment-578521412
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20200126/64257d7f/attachment.htm>


More information about the rails-dev mailing list