fix a bug in Ox.URL

This commit is contained in:
rolux 2013-03-05 14:31:21 +00:00
parent f34d70fd4c
commit c869231d34

View file

@ -471,7 +471,9 @@ Ox.URL = function(options) {
}); });
} }
return hash.anchor || hash.query return hash.anchor || hash.query
? '#' + hash.anchor + ( ? '#' + (
hash.anchor || ''
) + (
hash.query ? '?' + Ox.serialize(obj) : '' hash.query ? '?' + Ox.serialize(obj) : ''
) )
: ''; : '';