fix URL controller

This commit is contained in:
rolux 2013-02-18 19:35:16 +05:30
parent e96a1ef42e
commit 89ef5d5bbc

View file

@ -501,7 +501,7 @@ Ox.URL = function(options) {
} }
} }
return '/' + Ox.filter(parts).join('/') return '/' + Ox.filter(parts).join('/')
+ (state.hash ? '#' + constructHash(state.hash) : ''); + (!Ox.isEmpty(state.hash) ? '#' + constructHash(state.hash) : '');
} }
function constructValue(str, key) { function constructValue(str, key) {