Generate csv download url based on current host and port
This commit is contained in:
parent
65cce4a726
commit
8420d55491
@ -239,8 +239,9 @@ function exportToCSV() {
|
|||||||
|
|
||||||
setCurrentTab("table_query");
|
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');
|
var win = window.open(url, '_blank');
|
||||||
|
|
||||||
win.focus();
|
win.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user