Generate csv download url based on current host and port
This commit is contained in:
@@ -239,8 +239,9 @@ function exportToCSV() {
|
||||
|
||||
setCurrentTab("table_query");
|
||||
|
||||
var url = "http://localhost:8080/query?format=csv&query=" + query;
|
||||
var url = "http://" + window.location.host + "/query?format=csv&query=" + query;
|
||||
var win = window.open(url, '_blank');
|
||||
|
||||
win.focus();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user