Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit d939f99

Browse files
Merge pull request #392 from mboelter/master
Bugfix: dashboard working correctly if baseUrl is set in config file
2 parents 3f33e7e + fa80e81 commit d939f99

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Server/public/vorlon.dashboardManager.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ module VORLON {
149149
}
150150

151151
var pluginlistelementa = document.createElement("a");
152-
pluginlistelementa.innerHTML = " <img src='/images/systems/"+client.icon+"' alt='icon_system'> " + (client.identity ? client.identity : client.name) + " - " + client.displayid;
152+
pluginlistelementa.innerHTML = " <img src='" + DashboardManager.vorlonBaseURL + "/images/systems/"+client.icon+"' alt='icon_system'> " + (client.identity ? client.identity : client.name) + " - " + client.displayid;
153153
pluginlistelementa.setAttribute("href", vorlonBaseURL + "/dashboard/" + DashboardManager.SessionId + "/" + client.clientid);
154154
pluginlistelement.appendChild(pluginlistelementa);
155155

@@ -363,7 +363,7 @@ module VORLON {
363363
}
364364

365365
public static goConfig(): void {
366-
location.href = '/config';
366+
location.href = DashboardManager.vorlonBaseURL + '/config';
367367
}
368368

369369
public static ResetDashboard(reload: boolean = true): void {
@@ -435,4 +435,4 @@ module VORLON {
435435
xhr.send();
436436
}
437437
}
438-
}
438+
}

0 commit comments

Comments
 (0)