diff --git a/static/js/history.js b/static/js/history.js index 27056fbbb..403a8f488 100644 --- a/static/js/history.js +++ b/static/js/history.js @@ -95,17 +95,19 @@ History.prototype = { serialize: function() { var res = this.base; + var args = ""; if (this.paramslength() != 0) { - res += "?"; + args += "?"; + console.log(this.params); $.each(this.params, function(key, value) { - if (res != "?") { - res += "&"; + if (args != "?") { + args += "&"; } - res += key + "=" + encodeURIComponent(value); + args += key + "=" + encodeURIComponent(value); }); } - return res; + return res + args; }, update: function(force, noupdate) {