<div style="display: flex; flex-wrap: wrap; white-space: pre-wrap; align-items: center; "><img height="20" width="20" style="border-radius:50%; margin-right: 4px;" decoding="async" src="https://avatars.githubusercontent.com/u/50826859?s=20&v=4" /><strong>hlfan</strong> created an issue <a href="https://github.com/openstreetmap/openstreetmap-website/issues/5959">(openstreetmap/openstreetmap-website#5959)</a></div>
<h3 dir="auto">URL</h3>
<p dir="auto">afaict only in development environments</p>
<h3 dir="auto">How to reproduce the issue?</h3>
<ol dir="auto">
<li>Set your location with the dev tools if wanted/needed</li>
<li>Search in OSM for a place near the location</li>
<li>Activate the "show location" feature</li>
<li>Click the directions button to "Find directions between two points"</li>
</ol>
<p dir="auto">The output gets written immediately, since the endpoints are close.<br>
Only later (since it's not cached) does Rails respond with the contents of <code class="notranslate">directions/search.html.erb</code>.<br>
So, since the <code class="notranslate">#directions_content</code> div wasn't there when the instructions were meant to be written, it remains blank.</p>
<h3 dir="auto">Screenshot(s) or anything else?</h3>
<p dir="auto"><em>No response</em></p>
<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/issues/5959">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLPUQ44E7Z46VZZU4F323VKGJAVCNFSM6AAAAAB37CEN3KVHI2DSMVQWIX3LMV43ASLTON2WKOZTGAZDGMZVG4YTGOI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLLHHA6GAD6KZYX4GIL23VKGJA5CNFSM6AAAAAB37CEN3KWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHLINGE2M.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/issues/5959</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/issues/5959",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/5959",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>