Fix query export CSV endpoint, its prefixed with /api now
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user