diff --git a/lhc_web/design/defaulttheme/js/cobrowse/lhc_operator.js b/lhc_web/design/defaulttheme/js/cobrowse/lhc_operator.js index 00257ba422..5fe9fe572a 100644 --- a/lhc_web/design/defaulttheme/js/cobrowse/lhc_operator.js +++ b/lhc_web/design/defaulttheme/js/cobrowse/lhc_operator.js @@ -87,6 +87,7 @@ var LHCCoBrowserOperator = (function() { var node = document.createElement('HEAD'); node.appendChild(document.createElement('BASE')); node.firstChild.href = _this.base; + node.firstChild.id = "lhc-co-browse-base-id"; return node; } }, @@ -101,6 +102,11 @@ var LHCCoBrowserOperator = (function() { return true; } + // There exists original base so remove our own detected. + if (node.nodeName == 'BASE') { + $(_this.iFrameDocument).find('#lhc-co-browse-base-id').remove(); + } + // remove anchors's onclick dom0-style handlers so they // don't mess with our click handler and don't produce errors if (node.nodeName == 'A' && attr == 'onclick') {