From 9cb53a1117a7e13a4c382819832d3d6f75f8a2cc Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Fri, 6 Nov 2015 01:02:05 -0500 Subject: [PATCH] Don't update urlhash during the walkthrough (related: #1795) Users are likely reloading the page (e.g with Cmd-R) and getting put back into Three Rivers, thinking they are still in the tutorial. --- js/id/behavior/hash.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/id/behavior/hash.js b/js/id/behavior/hash.js index e44c504ec..1cc298c1d 100644 --- a/js/id/behavior/hash.js +++ b/js/id/behavior/hash.js @@ -40,6 +40,7 @@ iD.behavior.Hash = function(context) { }; function update() { + if (context.inIntro()) return; var s1 = formatter(context.map()); if (s0 !== s1) location.replace(s0 = s1); // don't recenter the map! }