diff --git a/html/gui/js/CCR.js b/html/gui/js/CCR.js index 4ee81c4323..de7de9a372 100644 --- a/html/gui/js/CCR.js +++ b/html/gui/js/CCR.js @@ -1368,10 +1368,14 @@ CCR.getParameter = function (name, source) { * TAB */ CCR.tokenize = function (hash) { - var matches = hash.match(/^#?(([^:\\?]*):?([^:\\?]*):?([^:\\?]*)\??(.*))/); + var raw = (typeof hash !== 'string') + ? String(hash) + : hash; + + var matches = raw.match(/^#?(([^:\\?]*):?([^:\\?]*):?([^:\\?]*)\??(.*))/); var tokens = { - raw: hash, + raw: raw, content: matches[1], root: matches[2], tab: matches[3],