Commit c6ee86bc 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 c445164a
...@@ -220,11 +220,11 @@ PositionalUrl.prototype.generateParamsString = function(params_dict) { ...@@ -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) { 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); console.log("new url: " + new_url);
this.window.history.pushState('plop', 'plop', 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