diff --git a/source/Ox.UI/js/Core/URL.js b/source/Ox.UI/js/Core/URL.js index 150b64b6..d437ad38 100644 --- a/source/Ox.UI/js/Core/URL.js +++ b/source/Ox.UI/js/Core/URL.js @@ -394,12 +394,12 @@ Ox.URL = function(options) { self.previousTitle = ''; self.previousURL = ''; - window.onpopstate = function() { + window.addEventListener('popstate', function() { self.previousTitle = document.title; self.previousURL = document.location.pathname + document.location.search + document.location.hash; - }; + }); function constructCondition(condition) { var key = condition.key == '*' ? '' : condition.key,