diff --git a/core/control/ContentController.php b/core/control/ContentController.php index f2a7744fc..3e616425c 100755 --- a/core/control/ContentController.php +++ b/core/control/ContentController.php @@ -296,18 +296,12 @@ class ContentController extends Controller { Behaviour.register({ '#switchView a' : { onclick : function() { - var w = window.open(this.href,windowName(this.target)); + var w = window.open(this.href); w.focus(); return false; } } }); - - function windowName(suffix) { - var base = document.getElementsByTagName('base')[0].href.replace('http://','').replace(/\//g,'_').replace(/\./g,'_'); - return base + suffix; - } - window.name = windowName('site'); JS );