@cryptotaxi247 / netdata-1 / commits / cf9e3d693

fix wrong url saved at the snapshots when netdata is at a path of a server

Costa Tsaousis (ktsaou) committed Nov 23, 2017 at 01:55 UTC cf9e3d6931000bc00aef75997c858ff4e09b34e5
1 file changed +1 -1
web/index.html
+1 -1
@@ -3469,7 +3469,7 @@
3469 duration_ms: options.duration * 1000,
3470 update_every_ms: options.update_every * 1000,
3471 data_points: 0,
3472 - url: ((urlOptions.server !== null) ? urlOptions.server : document.location.origin.toString() + document.location.search.toString()).toString(),
3472 + url: ((urlOptions.server !== null) ? urlOptions.server : document.location.origin.toString() + document.location.pathname.toString() + document.location.search.toString()).toString(),
3473 comments: document.getElementById('saveSnapshotComments').value.toString(),
3474 hash: urlOptions.hash,
3475 charts: options.data,