Skip to content

Commit

Permalink
Update initialize.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lesichkovm authored Jul 29, 2019
1 parent 72a9fa6 commit 78fb23b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion initialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
};

Expand Down

0 comments on commit 78fb23b

Please sign in to comment.