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

url.js positional params manage extra slashes

Ignore empty slashes. This is mainly so remove the empty positional
parameter that appears when we have a trailing slash on the URL (which
is currently added automatically by NGINX), but will serve as a catchall
for any "empty" slash arguments, much like unix-like distributions
manage filepaths.
parent be596019
......@@ -192,7 +192,7 @@ PositionalUrl.prototype.parseUrlParams = function() {
var slash_params = url.pathname.substr(1).split('/');
var positional_params = [];
for (var k = 0; k < slash_params.length; k++) {
if(slash_params[k] !== 'browser')
if(slash_params[k] !== 'browser' && slash_params[k] !== "")
var pos_param_keys = this.getStraightParams();
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