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 6bd9be3 commit 0542b18
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions initialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,11 +315,12 @@ function Initialize() {
var queryString = Object.keys(data).map((key) => {
return encodeURIComponent(key) + '=' + encodeURIComponent(data[key])
}).join('&');
if(data && data.length>0) {
window.location.href = url + '?' + queryString;
} else {
window.location.href = url;
}

if (queryString.length > 0) {
url = url + '?' + queryString;
}

window.location.href = url;

return false; // otherwise links will be triggered
};
Expand Down

0 comments on commit 0542b18

Please sign in to comment.