remove trailing slash when constructing url
This commit is contained in:
parent
0994a6243f
commit
4d13b8444b
1 changed files with 3 additions and 1 deletions
|
@ -252,7 +252,9 @@ Ox.URL = function(options) {
|
||||||
parts.push(constructFind(state.find));
|
parts.push(constructFind(state.find));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return '/' + parts.join('/');
|
return '/' + Ox.map(parts, function(part) {
|
||||||
|
return part || null;
|
||||||
|
}).join('/');
|
||||||
}
|
}
|
||||||
|
|
||||||
function decodeValue(str) {
|
function decodeValue(str) {
|
||||||
|
|
Loading…
Reference in a new issue