function updatelinks(loc, zoom, layers, object) {
$(".geolink").each(function(index, link) {
var href = link.href.split(/[?#]/)[0],
function updatelinks(loc, zoom, layers, object) {
$(".geolink").each(function(index, link) {
var href = link.href.split(/[?#]/)[0],
- if (object && $(link).hasClass("object")) args[object.type] = object.id;
+ if (object && editlink) {
+ delete args['node'];
+ delete args['way'];
+ delete args['relation'];
+ delete args['changeset'];
+
+ args[object.type] = object.id;
+ }
$("#menu-icon").on("click", function(e) {
e.preventDefault();
$("header").toggleClass("closed");
$("#menu-icon").on("click", function(e) {
e.preventDefault();
$("header").toggleClass("closed");