diff --git a/initialize.js b/initialize.js index 18e64b4..f819602 100644 --- a/initialize.js +++ b/initialize.js @@ -312,7 +312,15 @@ function Initialize() { } else { var url = rtrim(Config.getRootUrl(), ['/']) + '/' + ltrim(url, ['/']); } - window.location.href = url; + var queryString = Object.keys(data).map((key) => { + return encodeURIComponent(key) + '=' + encodeURIComponent(params[key]) + }).join('&'); + if(data && data.length>0) { + window.location.href = url + '?' + queryString; + } else { + window.location.href = url; + } + return false; // otherwise links will be triggered };