- // little hack. may the gods of hardcoding please forgive me, or
- // show me the Right way to do it.
- if (layers && (layers != "B000FTF")) {
+ var prefix = shortlinkPrefix();
+
+ // Add ?{node,way,relation}=id to the arguments
+ if (objtype && objid) {
+ args[objtype] = objid;
+ }
+
+ // This is a hack to omit the default mapnik layer (B000FTF) from
+ // the shortlink. B000FTFT is then the "Object" layer which we get
+ // on /?{node,way,relation}=id
+ if (layers && (layers != "B000FTF") && (layers != "B000FTFT")) {