<p dir="auto">Here's some strange behavior:</p>
<ol dir="auto">
<li>Zoom in close enough.</li>
<li>Build a route, like <a href="https://www.openstreetmap.org/directions?engine=fossgis_osrm_car&route=48.861246%2C2.345002%3B48.862012%2C2.341391#map=18/48.861833/2.343210" rel="nofollow">this one</a>.</li>
<li>Look at the browser location bar. It's going to contain the coordinates of endpoints. Notice that they have 5-6 digits after <code class="notranslate">.</code>.</li>
<li>Zoom out to see the entire planet.</li>
<li>Click <em>Go</em> to rebuild the route. This will zoom you back to the same route.</li>
<li>Look at the location bar again. Now the coordinates have only one digit after after <code class="notranslate">.</code> and they are the same for starting/ending points. That can't be right.</li>
<li>Click <em>Reload</em> and you'll be taken to some other place and the route will be gone.</li>
</ol>

<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/5794'>https://github.com/openstreetmap/openstreetmap-website/pull/5794</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5794/commits/9385e00cd9650c4562a673b5bc048ba748756255" class="commit-link">9385e00</a>  Don't crop coordinates when replacing directions url</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5794/files">1 file</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5794/files#diff-fdb9558c2ba79ddf9fbcb92594a8a8fa54abb1b3e25ce264de37951b428a958b">app/assets/javascripts/index/directions.js</a>
    (2)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5794.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5794.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5794.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5794.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/5794">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLNA7XSINDMTE4GMHU32T54ZZAVCNFSM6AAAAABY2HQQPGVHI2DSMVQWIX3LMV43ASLTON2WKOZSHEYTEMRQGEZTSOA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLLDVVP47XEJLPC2VZD2T54ZZA5CNFSM6AAAAABY2HQQPGWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHK3FFKWY.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/5794</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/5794",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5794",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>