<p dir="auto">If you open the empty query page <a href="https://www.openstreetmap.org/query" rel="nofollow">https://www.openstreetmap.org/query</a> , you'll get <a href="https://github.com/openstreetmap/openstreetmap-website/issues/3819#issuecomment-1341369521" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/3819/hovercard">javascript errors</a>. Maybe it's not supposed to be accessible this way, but there's no 404 for missing parameters. You can also pass invalid lat/lon parameters that Leaflet won't recognize and won't construct a valid LatLng object. Leaflet may fail by throwing an exception or by returning <code class="notranslate">undefined</code>.</p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/3833'>https://github.com/openstreetmap/openstreetmap-website/pull/3833</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/3833/commits/715ffc4fd609104f97c125f98438c3cd9af80130" class="commit-link">715ffc4</a> Don't set map view, don't run overpass query when no lat/lon provided to query page</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/3833/commits/2cee9c658fcaf8231b1a3359510f1333139434a9" class="commit-link">2cee9c6</a> Don't set map view, don't run overpass query when invalid lat/lon provided to query page</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3833/files">2 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3833/files#diff-8275a6df0995b2af17f0b52a0dfe5a00f8b09d9d51b89516e2612a3faa9d8c0f">app/assets/javascripts/index/query.js</a>
(9)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3833/files#diff-74c3414af0a76b3935f1a316c51c37b9415ded1fd811d596ba523d38e7c1489b">test/system/index_test.rb</a>
(12)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/3833.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/3833.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/3833.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/3833.diff</a></li>
</ul>
<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/3833">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLMPD5RV5BFRKHB2TULWMHJYBANCNFSM6AAAAAASYC7OIA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLPFLLLMCEZLGFY34V3WMHJYBA5CNFSM6AAAAAASYC7OICWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHFQ7EZMI.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/3833</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/3833",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/3833",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>