From 3ea551358c8322a4d0fd67f26fdc5da1f0310f3d Mon Sep 17 00:00:00 2001 From: liamcottle Date: Tue, 30 Jul 2024 22:14:22 +1200 Subject: [PATCH] update node path before and after loading pages --- public/index.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index f6822b8..a4fc8a6 100644 --- a/public/index.html +++ b/public/index.html @@ -2276,6 +2276,9 @@ // update url bar this.nodePagePathUrlInput = this.nodePagePath; + // update node path + this.getNodePath(destinationHash); + // add to previous page to history if we are not loading that previous page if(addToHistory && previousNodePagePath != null && previousNodePagePath !== this.nodePagePath){ this.nodePagePathHistory.push(previousNodePagePath); @@ -2320,6 +2323,9 @@ // update page content this.isLoadingNodePage = false; + // update node path + this.getNodePath(destinationHash); + }, (failureReason) => { // do nothing if callback is for a previous request @@ -2576,7 +2582,6 @@ onNodeClick: function(node) { this.selectedNode = node; this.tab = "nomadnetwork"; - this.getNodePath(node.destination_hash); this.loadNodePage(node.destination_hash, "/page/index.mu"); }, onConversationClick: function(conversation) {