2 return window.location.protocol + "//" + window.location.host + window.location.pathname.substr(0, window.location.pathname.lastIndexOf("/") + 1);
5 function absoluteURL(url) {
8 var match = url.match(/^(.*\/)[^.][^/]*\/\.\.\/(.*)$/);
11 url = match[1] + match[2];