mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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
This commit is contained in:
parent
aeeb7bbc7b
commit
51881ac87a
@ -448,6 +448,6 @@ window.name = windowName('cms');
|
|||||||
* Return a unique window name that contains the URL
|
* Return a unique window name that contains the URL
|
||||||
*/
|
*/
|
||||||
function windowName(suffix) {
|
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;
|
return base + suffix;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user