diff --git a/static/js/embedPlayer.js b/static/js/embedPlayer.js index 659115ae0..c8adb7ad1 100644 --- a/static/js/embedPlayer.js +++ b/static/js/embedPlayer.js @@ -135,7 +135,7 @@ pandora.ui.embedPlayer = function() { + document.location.hostname + '/' + options.item + '/' + Ox.formatDuration($player.options('position')); - window.top.open(url, '_blank'); + window.open(url, '_blank'); }, playing: function(data) { setPosition(data.position, true); diff --git a/static/js/utils.js b/static/js/utils.js index 81a66740b..1661077ac 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -255,7 +255,7 @@ pandora.clickLink = function(e) { } pandora.URL.push(e.target.pathname, true); } else { - window.top.open('/url=' + encodeURIComponent(e.target.href), '_blank'); + window.open('/url=' + encodeURIComponent(e.target.href), '_blank'); } }; @@ -274,7 +274,7 @@ pandora.createLinks = function($element) { ) { e.preventDefault(); if (isExternalLink(e.target)) { - window.top.open('/url=' + encodeURIComponent(e.target.href), '_blank'); + window.open('/url=' + encodeURIComponent(e.target.href), '_blank'); } else { pandora.clickLink(e); }