From 581875372c9e7699bff48ac16a7a439b2cdc5ac4 Mon Sep 17 00:00:00 2001 From: Nick Amoscato Date: Sat, 23 Dec 2017 18:59:41 -0500 Subject: [PATCH] #1944 Always set fragment identifier on setURL() Ensures the fragment identifier is cleared out when performing "Save as" on a shared project and "Project URLs" is disabled (the default). Resolves #1944. --- gui.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gui.js b/gui.js index eab4d656..faa42488 100644 --- a/gui.js +++ b/gui.js @@ -4347,9 +4347,7 @@ IDE_Morph.prototype.openProject = function (name) { IDE_Morph.prototype.setURL = function (str) { // Set the URL to a project's XML contents - if (this.projectsInURLs) { - location.hash = str; - } + location.hash = this.projectsInURLs ? str : ''; }; IDE_Morph.prototype.saveFileAs = function (