diff --git a/source/UI/js/Core/URL.js b/source/UI/js/Core/URL.js index 32d993fa..805bd501 100644 --- a/source/UI/js/Core/URL.js +++ b/source/UI/js/Core/URL.js @@ -791,7 +791,16 @@ Ox.URL = function(options) { parts.shift(); if (parts.length) { // may modify state.part - self.options.getPart(state, decodeValue(parts[0]), getHash); + self.options.getPart(state, decodeValue(parts[0]), function() { + if (state.part) { + parts.shift(); + if (parts.length) { + parsePartSpan(); + } else { + getHash(); + } + } + }); } else { getHash(); } @@ -966,6 +975,9 @@ Ox.URL = function(options) { } getHash(); } + function parsePartSpan() { + options.getSpan(state, decodeValue(parts.join('/')), getHash); + } function getHash() { self.options.getHash(state, function() { // may have modified state.hash