repo: janusweb
action: commit
revision: 
path_from: 
revision_from: dab463ad93709a4e3be74a5c6ac678552769ad36:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit dab463ad93709a4e3be74a5c6ac678552769ad36
Author: James Baicoianu 
Date:   Wed Jul 14 16:49:25 2021 -0700

    Don't navigate to homepage unless location hash is empty

diff --git a/scripts/janusweb.js b/scripts/janusweb.js
index 16c0c9f6dcd759d486eb669392d3ca8d966a8ac5..
index ..023a32806f0f1152c4dc873544e177e72823a115 100644
--- a/scripts/janusweb.js
+++ b/scripts/janusweb.js
@@ -457,7 +457,7 @@ elation.require([
         var hashurl = hashargs['janus.url'];
         if (hashurl && hashurl != this.properties.url && !this.loading) {
           this.setActiveRoom(hashurl, this.currentroom.url, true);
-        } else if (!hashurl && this.properties.url != this.homepage) {
+        } else if (!hashurl && this.properties.url != this.homepage && !document.location.hash) {
           this.setActiveRoom(this.homepage);
         }
       }

-----END OF PAGE-----