diff --git a/source/Ox.UI/js/Core/URL.js b/source/Ox.UI/js/Core/URL.js index 0d60e02f..a6c7e61f 100644 --- a/source/Ox.UI/js/Core/URL.js +++ b/source/Ox.UI/js/Core/URL.js @@ -566,8 +566,8 @@ Ox.URL = function(options) { return Ox.decodeURIComponent(value).replace(/_/g, ' ').replace(Ox.char(9), '_'); } - function encodeValue(value, encodeSlash) { - var chars = (encodeSlash ? '/' : '') + '&|()=*%', + function encodeValue(value, isItem) { + var chars = isItem ? '/#%' : '#&|()=*%', ret = ''; value.toString().split('').forEach(function(char) { var index = chars.indexOf(char);