diff --git a/static/js/pandora/URL.js b/static/js/pandora/URL.js index 89b0005ed..a68e2bb09 100644 --- a/static/js/pandora/URL.js +++ b/static/js/pandora/URL.js @@ -379,7 +379,7 @@ pandora.URL = (function() { } if (e.state && !Ox.isEmpty(e.state)) { Ox.Log('URL', 'E.STATE', e.state) - document.title = e.state.title; + document.title = Ox.decodeHTMLEntities(e.state.title); setState(e.state); } else if (window.location.pathname == '/') { pandora.$ui.home = pandora.ui.home().fadeInScreen(); diff --git a/static/js/pandora/item.js b/static/js/pandora/item.js index 3a5292e0f..48b361f3a 100644 --- a/static/js/pandora/item.js +++ b/static/js/pandora/item.js @@ -29,7 +29,7 @@ pandora.ui.item = function() { if (result.status.code == 200) { // we want to cache the title in any way, so that after closing // a dialog and getting to this item, the title is correct - var documentTitle = pandora.getDocumentTitle(Ox.decodeHtml(result.data.title)); + var documentTitle = pandora.getDocumentTitle(Ox.decodeHTMLEntities(result.data.title)); document.title = pandora.getPageTitle(document.location.pathname) || documentTitle; }