From 51881ac87adc769699234cf06c10baa97d6f384d Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Tue, 13 Jan 2009 02:42:45 +0000 Subject: [PATCH] BUGFIX Strip out any "~" characters that may stop the staging link from working in IE6/IE7 git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@70049 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/LeftAndMain_right.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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