diff --git a/javascript/LeftAndMain_right.js b/javascript/LeftAndMain_right.js index 58d7d2d5..1474ba61 100755 --- a/javascript/LeftAndMain_right.js +++ b/javascript/LeftAndMain_right.js @@ -448,6 +448,6 @@ window.name = windowName('cms'); * Return a unique window name that contains the URL */ function windowName(suffix) { - var base = document.getElementsByTagName('base')[0].href.replace('http://','').replace(/\//g,'_').replace(/\./g,'_'); + var base = document.getElementsByTagName('base')[0].href.replace('~','').replace('http://','').replace(/\//g,'_').replace(/\./g,'_'); return base + suffix; } \ No newline at end of file