From 64e8e85187589bed18fbf04047b2ec325a6e0243 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Wed, 23 Jan 2013 15:57:57 -0500 Subject: [PATCH] location.replace (fixes #462) --- js/id/modes/select.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/id/modes/select.js b/js/id/modes/select.js index d80d6fffd..dc298e36a 100644 --- a/js/id/modes/select.js +++ b/js/id/modes/select.js @@ -45,9 +45,9 @@ iD.modes.Select = function(entity, initial) { }); var q = iD.util.stringQs(location.hash.substring(1)); - location.hash = '#' + iD.util.qsString(_.assign(q, { + location.replace('#' + iD.util.qsString(_.assign(q, { id: entity.id - }), true); + }), true)); d3.select('.inspector-wrap') .style('display', 'block') @@ -166,7 +166,7 @@ iD.modes.Select = function(entity, initial) { }); var q = iD.util.stringQs(location.hash.substring(1)); - location.hash = '#' + iD.util.qsString(_.omit(q, 'id'), true); + location.replace('#' + iD.util.qsString(_.omit(q, 'id'), true)); keybinding.off();