diff --git a/source/UI/js/Core/URL.js b/source/UI/js/Core/URL.js index 32d993fa..a32ba226 100644 --- a/source/UI/js/Core/URL.js +++ b/source/UI/js/Core/URL.js @@ -21,9 +21,10 @@ Ox.URL URL controller callback callback function getPart Tests if a string matches a part (page section) May modify the state's part property - (state, string, callback) -> undefined + (state, string, parts, callback) -> undefined state State object string The string to be tested + parts <[s]> Array of additional parts callback callback function getSort Tests if a sort object is valid (for the current item) May modify the state's sort properties @@ -537,6 +538,9 @@ Ox.URL = function(options) { parts.push(state.page); if (state.part) { parts.push(state.part); + if (state.parts) { + parts = parts.concat(state.parts); + } } } else { if (self.options.types.indexOf(state.type) > 0) { @@ -790,8 +794,8 @@ Ox.URL = function(options) { state.page = parts[0]; parts.shift(); if (parts.length) { - // may modify state.part - self.options.getPart(state, decodeValue(parts[0]), getHash); + // may modify state.part, state.page + self.options.getPart(state, decodeValue(parts[0]), parts.slice(1), getHash); } else { getHash(); }