fix url controller

This commit is contained in:
rolux 2013-02-18 17:48:46 +05:30
parent 7aafed8d25
commit e96a1ef42e

View file

@ -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) {