<p></p>
<h3 dir="auto">URL</h3>
<p dir="auto"><a href="https://www.openstreetmap.org/directions" rel="nofollow">https://www.openstreetmap.org/directions</a></p>
<h3 dir="auto">How to reproduce the issue?</h3>
<ol dir="auto">
<li>build a route</li>
<li>click on a segment in directions - a popup shows up</li>
</ol>
<p dir="auto"><a href="https://github.com/user-attachments/assets/342fbcaa-b11c-4001-a5bc-5b85f3c20d21">image.png (view on web)</a></p>
<ol start="3" dir="auto">
<li>close the sidebar - the route is removed but the popup stays</li>
</ol>
<p dir="auto"><a href="https://github.com/user-attachments/assets/996e0edb-37f6-44c3-8275-094bb79504b3">image.png (view on web)</a></p>
<p dir="auto">The popup should also be removed.</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/5599">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLNMLV6FHB7VSDIT6PT2N6DNPAVCNFSM6AAAAABWMMJO3GVHI2DSMVQWIX3LMV43ASLTON2WKOZSHAZDOOBTHE3DOMQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLOJHK5O2HARIGVMLML2N6DNPA5CNFSM6AAAAABWMMJO3GWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHKRDLIXA.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/5599</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/5599",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/5599",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>