mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-19 06:58:32 +02:00
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.
This commit is contained in:
@@ -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!
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user