diff --git a/source/Ox.UI/js/Core/Ox.URL.js b/source/Ox.UI/js/Core/Ox.URL.js index 6967fe65..ff3b4591 100644 --- a/source/Ox.UI/js/Core/Ox.URL.js +++ b/source/Ox.UI/js/Core/Ox.URL.js @@ -308,11 +308,9 @@ Ox.URL = function(options) { return false; } }); - if ( - !condition.operator - || Ox.getPositionById(self.options.findKeys, condition.key) == -1 - ) { - // missing operator or unknown key + if (Ox.getPositionById(self.options.findKeys, condition.key) == -1) { + condition = {key: '*', value: str, operator: '='}; + } else if (!condition.operator) { condition = {key: '*', value: condition.value, operator: '='}; } if (['=', '!='].indexOf(condition.operator) > -1) {