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

<hr>

<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5961#discussion_r2064856924">app/assets/javascripts/index/directions.js</a>:</p>
<pre style='color:#555'>>  
-      map.setSidebarOverlaid(!endpoints[0].latlng || !endpoints[1].latlng);
-    }
+    map.setSidebarOverlaid(!endpoints[0].latlng || !endpoints[1].latlng);
</pre>
<p dir="auto">Yes, it's still needed.</p>
<ol dir="auto">
<li>Reload the map view to make sure that the directions sidebar is not loaded.</li>
<li>Open the context menu.</li>
<li>Pick <em>Directions from here</em>.</li>
<li>If you removed <code class="notranslate">map.setSidebarOverlaid</code> from <code class="notranslate">page.pushstate</code> / <code class="notranslate">page.popstate</code>, you'll see an empty <em>Directions</em> sidebar under the directions form. Normally it doesn't appear until two endopints are picked.</li>
</ol>

<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/5961#discussion_r2064856924">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLK7WDXT5XGNKTGSNU3232QFZAVCNFSM6AAAAAB37IBOJKVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDQMBRGA4TGNJYGU">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLLM2QI52PT7XTTHIK3232QFZA5CNFSM6AAAAAB37IBOJKWGG33NNVSW45C7OR4XAZNRKB2WY3CSMVYXKZLTORJGK5TJMV32UY3PNVWWK3TUL5UWJTVG6VF5C.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/5961/review/2801093585</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/5961#discussion_r2064856924",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5961#discussion_r2064856924",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>