From d63f13c18dff0cf29e2dd9dd756fac8dba2f5e20 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sat, 27 Jun 2009 16:11:21 +0000 Subject: [PATCH] Make ?{node,way,relation}=id GET argumens work for the shortlink as well as the permalink. --- public/javascripts/site.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/javascripts/site.js b/public/javascripts/site.js index f9c3e7a54..66c5d81fc 100644 --- a/public/javascripts/site.js +++ b/public/javascripts/site.js @@ -94,6 +94,11 @@ function updatelinks(lon,lat,zoom,layers,minlon,minlat,maxlon,maxlat, obj_type, var code = makeShortCode(lat, lon, zoom); var prefix = shortlinkPrefix(); + // Add ?{node,way,relation}=id to the arguments + if (obj_type && obj_id) { + args[obj_type] = obj_id; + } + // little hack. may the gods of hardcoding please forgive me, or // show me the Right way to do it. if (layers && (layers != "B000FTF")) { -- 2.43.2