<p></p>
<p><b>@tomhughes</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5887#discussion_r2076144952">app/helpers/geocoder_helper.rb</a>:</p>
<pre style='color:#555'>> +    return "" unless params[:lat].present? && params[:lon].present?
+
+    "#map=#{params[:zoom] || 17}/#{params[:lat]}/#{params[:lon]}"
</pre>
<p dir="auto">I suggest just returning the target:</p>
⬇️ Suggested change
<pre style="color: #555">-    return "" unless params[:lat].present? && params[:lon].present?
-
-    "#map=#{params[:zoom] || 17}/#{params[:lat]}/#{params[:lon]}"
+    return nil unless params[:lat].present? && params[:lon].present?
+
+    [params[:zoom] || 17, params[:lat], params[:lon]].join("/")
</pre>


<hr>

<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5887#discussion_r2076145800">app/views/site/fixthemap.html.erb</a>:</p>
<pre style='color:#555'>> @@ -23,6 +19,7 @@
     <h3 class='fs-5'><%= t "site.welcome.add_a_note.title" %></h3>
     <p><%= t "site.welcome.add_a_note.para_1" %></p>
     <p><%= t ".how_to_help.add_a_note.instructions_1_html", :note_icon => tag.a(:class => "icon note bg-dark rounded-1",
+                                                                                :href => "#{new_note_path}#{map_hash(params)}",
</pre>
<p dir="auto">then you can do this:</p>
⬇️ Suggested change
<pre style="color: #555">-                                                                                :href => "#{new_note_path}#{map_hash(params)}",
+                                                                                :href => new_note_path(:anchor => map_hash(params)),
</pre>


<hr>

<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5887#discussion_r2076146876">app/views/site/welcome.html.erb</a>:</p>
<pre style='color:#555'>> +  <%= editor_query = "?editor=#{params[:editor]}" if params[:editor].present?
+      link_to t(".start_mapping"), "#{edit_path}#{editor_query || ''}#{map_hash(params)}", :class => "btn btn-primary start-mapping" %>
</pre>
<p dir="auto">and this:</p>
⬇️ Suggested change
<pre style="color: #555">-  <%= editor_query = "?editor=#{params[:editor]}" if params[:editor].present?
-      link_to t(".start_mapping"), "#{edit_path}#{editor_query || ''}#{map_hash(params)}", :class => "btn btn-primary start-mapping" %>
+  <%= link_to t(".start_mapping"), edit_path(:editor => params[:editor], :anchor => map_hash(params)), :class => "btn btn-primary start-mapping" %>
</pre>


<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5887#pullrequestreview-2819429769">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLLAHXSKGRYQEAAO5UL25EGV5AVCNFSM6AAAAAB2OIGNS6VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDQMJZGQZDSNZWHE">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJCALY2BHWH5EVAG7325EGV5A5CNFSM6AAAAAB2OIGNS6WGG33NNVSW45C7OR4XAZNRKB2WY3CSMVYXKZLTORJGK5TJMV32UY3PNVWWK3TUL5UWJTVIBUKYS.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/5887/review/2819429769</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/5887#pullrequestreview-2819429769",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5887#pullrequestreview-2819429769",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>