From e96a1ef42ea0f62d6baf6b4f588c07d86166ccf3 Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 18 Feb 2013 17:48:46 +0530 Subject: [PATCH] fix url controller --- source/Ox.UI/js/Core/URL.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Core/URL.js b/source/Ox.UI/js/Core/URL.js index 9c4cfab4..7eb19661 100644 --- a/source/Ox.UI/js/Core/URL.js +++ b/source/Ox.UI/js/Core/URL.js @@ -441,7 +441,8 @@ Ox.URL = function(options) { obj[condition.key] = condition.value; }); } - return (hash.anchor || '') + hash.query ? '?' + Ox.serialize(obj) : ''; + return (hash.anchor || '') + + (hash.query ? '?' + Ox.serialize(obj) : ''); } function constructLocation(location) {