Add PATH_PREFIX to redirectToMigratedURL

Old grafana versions use this format, and it breaks with prometheus instances
not mounted in the root directory.
This commit is contained in:
Martín Ferrari 2017-07-11 17:36:17 +00:00
parent f0f2ec7854
commit 64cfe2e7f5
2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -927,7 +927,7 @@ function redirectToMigratedURL() {
});
});
var query = $.param(queryObject);
window.location = "/graph?" + query;
window.location = PATH_PREFIX + "/graph?" + query;
}
$(init);