<p></p>
<h3 dir="auto">Description</h3>
<p dir="auto">Right now users use URLs with IDs to reference individual objects on osm.org, e.g. <a href="https://www.openstreetmap.org/relation/23092" rel="nofollow">https://www.openstreetmap.org/relation/23092</a> – which might break when the object changes, especially when used for nodes or ways instead of relations.</p>
<p dir="auto">We could allow addressing via other attributes like <code>ref</code>, <code>network</code> etc – e.g. for the object above one could think about an URL like <code>https://www.openstreetmap.org/relation/[ref=A+555][network=BAB]</code>,  or <code>https://www.openstreetmap.org/relation/network=BAB/ref=A+555</code>, or <code>https://www.openstreetmap.org/relation/?network=BAB&ref=A+555</code></p>
<p dir="auto">Right now such an URL leads to a 404, but we could modify the rails app to delegate such a request to <code>query.openstreetmap.org</code> which find the corresponding object(s) and redirects the user back osm.org, now with the current ID of that object.</p>
<p dir="auto">Actually query.openstreetmap.org already supports <a href="https://wiki.openstreetmap.org/wiki/Overpass_API/Permanent_ID" rel="nofollow">this feature</a>:</p>
<p dir="auto"><code>https://query.openstreetmap.org/query-features?data=[out:custom];{insert-query-from-url-here};out;</code><br>
e.g.<br>
<a href="https://query.openstreetmap.org/query-features?data=%5Bout:custom%5D;relation%5Bref=%22A+555%22%5D%5Bnetwork=BAB%5D;out" rel="nofollow">https://query.openstreetmap.org/query-features?data=[out:custom];relation[ref="A+555"][network=BAB];out</a>;<br>
which redirects to<br>
<a href="https://www.openstreetmap.org/relation/23092" rel="nofollow">https://www.openstreetmap.org/relation/23092</a></p>
<p dir="auto">What's your opinion?<br>
Is it worth to create a pull request implementing the corresponding changes in the rails app?</p>
<h3 dir="auto">Screenshots</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/3499">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLOWNRJVINHTNORLGH3U7TTGVANCNFSM5QSH5TRA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLPQ3OT5EOQ7O3HPQFTU7TTGVA5CNFSM5QSH5TRKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4RMUV57A.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/3499</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/3499",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/3499",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>