Commit cdcc62fb authored by Ryan Herbert's avatar Ryan Herbert Committed by marc duez
Browse files

url.js fix issue with url param duplication

Splitting on the "?" was causing the positional parameters to be
duplicated whenever the browser would update. By splitting on the word
browser allows us to extract the root url, in order to append all the
correct parameters.
parent 897f2e76
......@@ -227,7 +227,7 @@ PositionalUrl.prototype.generateParamsString = function(params_dict) {
PositionalUrl.prototype.pushUrl = function(params) {
var new_url = window.location.href.split('?')[0] + params;
var new_url = window.location.href.split('browser')[0] + 'browser' + params;
console.log("new url: " + new_url);
this.window.history.pushState('plop', 'plop', new_url);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment