Generate csv download url based on current host and port

This commit is contained in:
Dan Sosedoff 2014-10-25 13:03:27 -05:00
parent 65cce4a726
commit 8420d55491

View File

@ -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();
} }