fix a bug in Ox.URL
This commit is contained in:
parent
f34d70fd4c
commit
c869231d34
1 changed files with 3 additions and 1 deletions
|
@ -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) : ''
|
||||||
)
|
)
|
||||||
: '';
|
: '';
|
||||||
|
|
Loading…
Reference in a new issue