mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-11 23:13:21 -05:00
URL &gotonode= now accepts HEX encoded NodeID.
This commit is contained in:
parent
d0e718a775
commit
a12bd9baf7
@ -3089,6 +3089,7 @@
|
|||||||
if (getNodeFromId('{{currentNode}}') == null) return; // This node is not loaded yet
|
if (getNodeFromId('{{currentNode}}') == null) return; // This node is not loaded yet
|
||||||
gotoDevice('{{currentNode}}', xviewmode);
|
gotoDevice('{{currentNode}}', xviewmode);
|
||||||
} else if (args.gotonode != null) {
|
} 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
|
if (getNodeFromId('node/' + domain + '/' + args.gotonode) == null) return; // This node is not loaded yet
|
||||||
gotoDevice('node/' + domain + '/' + args.gotonode, xviewmode);
|
gotoDevice('node/' + domain + '/' + args.gotonode, xviewmode);
|
||||||
goBackStack.push(1);
|
goBackStack.push(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user