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

url.js don't write positionnal arguments

Nginx can take care of all that. They will not change until a new URL is
called.
parent 8f6cb85f
......@@ -220,11 +220,11 @@ PositionalUrl.prototype.generateParamsString = function(params_dict) {
}
}
}
return positional_params.join('/') + '?' + params_list.join("&");
return '?' + params_list.join("&");
}
PositionalUrl.prototype.pushUrl = function(params) {
var new_url = window.location.origin + '/browser/' + params;
var new_url = window.location.href.split('?')[0] + params;
console.log("new url: " + new_url);
this.window.history.pushState('plop', 'plop', new_url);
};
......
Supports Markdown
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