diff options
Diffstat (limited to '')
-rw-r--r-- | web/gui/v1/dashboard-react.js (renamed from web/gui/dashboard/dashboard-react.js) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/gui/dashboard/dashboard-react.js b/web/gui/v1/dashboard-react.js index 8dbe6c3a6..aa067a726 100644 --- a/web/gui/dashboard/dashboard-react.js +++ b/web/gui/v1/dashboard-react.js @@ -470,7 +470,7 @@ const fixHost = (host) => { host = host.substring(0, host.length - 1); } - return host; + return host.replace(/\/v1\/?$/, ""); } NETDATA.chartRegistry = { @@ -555,7 +555,7 @@ NETDATA.fixHost = function (host) { host = host.substring(0, host.length - 1); } - return host; + return host.replace(/\/v1\/?$/, ""); }; |