Skip to content

Commit 4741673

Browse files
authored
add pathname to show-dashboard button link (#786)
1 parent 6f8499e commit 4741673

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nodes/ui_base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,7 @@
11641164
// Link out to dashboard
11651165
$.getJSON('uisettings',function(data) {
11661166
if (data.hasOwnProperty("path")) { uip = data.path; }
1167-
var lnk = document.location.host+RED.settings.httpNodeRoot+"/"+uip;
1167+
var lnk = document.location.host+document.location.pathname+RED.settings.httpNodeRoot+"/"+uip;
11681168
var re = new RegExp('\/{1,}','g');
11691169
lnk = lnk.replace(re,'/');
11701170
if (!RED.hasOwnProperty("actions")) {

0 commit comments

Comments
 (0)