]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/application.js
Force the X-Page-Title value to be treated as UTF-8
[rails.git] / app / assets / javascripts / application.js
index e5ac811e6724c00f48bcb7adaa750c156d2d5713..bc8719700aa217b53aff1bd8676db0fcc44f9e2d 100644 (file)
@@ -64,7 +64,14 @@ function updatelinks(loc, zoom, layers, object) {
       args = querystring.parse(link.search.substring(1)),
       editlink = $(link).hasClass("editlink");
 
       args = querystring.parse(link.search.substring(1)),
       editlink = $(link).hasClass("editlink");
 
-    if (object && editlink) 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;
+    }
 
     var query = querystring.stringify(args);
     if (query) href += '?' + query;
 
     var query = querystring.stringify(args);
     if (query) href += '?' + query;