diff --git a/static/js/pandora/utils.js b/static/js/pandora/utils.js index 452599998..5cc6b0e80 100644 --- a/static/js/pandora/utils.js +++ b/static/js/pandora/utils.js @@ -1085,6 +1085,12 @@ pandora.normalizeHashQuery = function(state) { newState.hash.query = newState.hash.query.filter(function(condition) { return !Ox.contains(removeKeys, condition.key); }); + if (Ox.isEmpty(newState.hash.query)) { + delete newState.hash.query; + } + } + if (Ox.isEmpty(newState.hash)) { + delete newState.hash; } return newState; };