There is an error in SGL2.js in current official version 0.6.6. on line 158
var webRoot = SGL_JS_WEBROOT.match(/(http[s]?:\/\/[\w.]+([:0-9]+)?)/i)[0];
if you have URL like http://www.my-domain.de the variable webRoot contains only
string "http://www.my". RegEx is not correct, because \w is wrong at this
position.
There is an error in SGL2.js in current official version 0.6.6. on line 158 var webRoot = SGL_JS_WEBROOT.match(/(http[s]?:\/\/[\w.]+([:0-9]+)?)/i)[0];
if you have URL like http://www.my-domain.de the variable webRoot contains only string "http://www.my". RegEx is not correct, because \w is wrong at this position.