Fix query export CSV endpoint, its prefixed with /api now

This commit is contained in:
Dan Sosedoff
2015-01-03 18:25:26 -06:00
parent 72df273e10
commit 2e5a006846
2 changed files with 141 additions and 141 deletions

View File

@@ -288,7 +288,7 @@ function exportToCSV() {
// Replace line breaks with spaces and properly encode query
query = window.encodeURI(query.replace(/\n/g, " "));
var url = "http://" + window.location.host + "/query?format=csv&query=" + query;
var url = "http://" + window.location.host + "/api/query?format=csv&query=" + query;
var win = window.open(url, '_blank');
setCurrentTab("table_query");