From 5aec7685f42ce2db35fe6fe231f836f036604057 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Mon, 24 Aug 2020 13:49:40 -0700 Subject: [PATCH] URL &gotonode= now accepts HEX encoded NodeID. --- views/default.handlebars | 1 + 1 file changed, 1 insertion(+) diff --git a/views/default.handlebars b/views/default.handlebars index 8a06c464..e872128c 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -3089,6 +3089,7 @@ if (getNodeFromId('{{currentNode}}') == null) return; // This node is not loaded yet gotoDevice('{{currentNode}}', xviewmode); } else if (args.gotonode != null) { + if (args.gotonode.length == 96) { args.gotonode = btoa(hex2rstr(args.gotonode)).split('+').join('@').split('/').join('$'); } // This is a HEX encoded NodeID, convert it to Base64 if (getNodeFromId('node/' + domain + '/' + args.gotonode) == null) return; // This node is not loaded yet gotoDevice('node/' + domain + '/' + args.gotonode, xviewmode); goBackStack.push(1);