<p dir="auto">When you close the directions form there's this code that tries to use the "From" value for searching.<br>
<a href="https://github.com/user-attachments/assets/01b267fa-2db9-4631-866c-076919d1b6ef">image.png (view on web)</a></p>
<p dir="auto">It does so by opening the url <code class="notranslate">/?query=...</code>. The url is wrong, it should be <code class="notranslate">/search?query=...</code>, thus nothing happens.</p>
<p dir="auto">I could have fixed it by using <code class="notranslate">/search?query=...</code>, but I don't like that it runs the search right away, when the close button is clicked. Instead I set the search input value.</p>
<p dir="auto"><a href="https://github.com/user-attachments/assets/6cddbbc6-64b1-4892-9574-3fca69c5f337">image.png (view on web)</a></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/5088'>https://github.com/openstreetmap/openstreetmap-website/pull/5088</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5088/commits/80c43f51c2bd97f0bf92026fbb273615e8f9f015" class="commit-link">80c43f5</a> Copy "From" endpoint value to search input when closing directions</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5088/files">1 file</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5088/files#diff-fdb9558c2ba79ddf9fbcb92594a8a8fa54abb1b3e25ce264de37951b428a958b">app/assets/javascripts/index/directions.js</a>
(8)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5088.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5088.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5088.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5088.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/5088">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLI7WJD4O7EN5WDPEUTZRYOMTAVCNFSM6AAAAABMUJYZAGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ3TANJTGYYTQOI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLM2ZYWVIU7XWYUWXILZRYOMTA5CNFSM6AAAAABMUJYZAGWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHJGQLD7U.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/5088</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/5088",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5088",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>