diff --git a/static/js/pandora/embedDialog.js b/static/js/pandora/embedDialog.js index e8c74bfe..bf6c67ac 100644 --- a/static/js/pandora/embedDialog.js +++ b/static/js/pandora/embedDialog.js @@ -34,7 +34,9 @@ pandora.ui.embedDialog = function(data) { data.view = 'video'; function constructUrl(data) { - var url = document.location.origin + '/' + pandora.user.ui.item + '/embed?', + var url = document.location.protocol + + '//' + document.location.host + + '/' + pandora.user.ui.item + '/embed?', query = []; Ox.forEach(data, function(value, key) { if(key[0] != '_') {