From 4d13b8444b47dd945ef20db949b3d2f3e2fcf400 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Sat, 8 Oct 2011 11:48:14 +0000 Subject: [PATCH] remove trailing slash when constructing url --- source/Ox.UI/js/Core/Ox.URL.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Core/Ox.URL.js b/source/Ox.UI/js/Core/Ox.URL.js index 6f2892e7..10be5440 100644 --- a/source/Ox.UI/js/Core/Ox.URL.js +++ b/source/Ox.UI/js/Core/Ox.URL.js @@ -252,7 +252,9 @@ Ox.URL = function(options) { parts.push(constructFind(state.find)); } } - return '/' + parts.join('/'); + return '/' + Ox.map(parts, function(part) { + return part || null; + }).join('/'); } function decodeValue(str) {