diff --git a/static/js/pandora/URL.js b/static/js/pandora/URL.js index 65769c019..4e6e3ce62 100644 --- a/static/js/pandora/URL.js +++ b/static/js/pandora/URL.js @@ -63,6 +63,20 @@ pandora.URL = (function() { } + if ( + pandora.user.ui._hash && ( + pandora.user.ui._hash.anchor || !Ox.isEmpty(pandora.user.ui._hash.query) + ) + ) { + state.hash = {}; + if (pandora.user.ui._hash.anchor) { + state.hash.anchor = pandora.user.ui._hash.anchor; + } + if (!Ox.isEmpty(pandora.user.ui._hash.query)) { + state.hash.query = pandora.user.ui._hash.query; + } + } + Ox.Log('URL', 'GOT STATE ...', state) return state; @@ -86,6 +100,7 @@ pandora.URL = (function() { } else { + pandora.user.ui._hash = state.hash; if ( state.hash && !Ox.contains(['embed', 'print'], state.hash.anchor) diff --git a/static/js/pandora/embedPlayer.js b/static/js/pandora/embedPlayer.js index 53fc6227b..8d8606c82 100644 --- a/static/js/pandora/embedPlayer.js +++ b/static/js/pandora/embedPlayer.js @@ -259,11 +259,11 @@ pandora.ui.embedPlayer = function() { function getOptions() { var options = {}; - ui.hash.query.forEach(function(condition) { - if (condition.key != 'embed') { - options[condition.key] = condition.value; - } - }); + if (ui._hash.query) { + ui._hash.query.forEach(function(condition) { + options[condition.key] = condition.value; + }); + } options = Ox.extend( {item: ui.item}, ui.videoPoints[ui.item] || {},