diff --git a/demo/js/libs/colt.0.3.1.js b/demo/js/libs/colt.0.3.1.js index 441cc07..eaee1b0 100644 --- a/demo/js/libs/colt.0.3.1.js +++ b/demo/js/libs/colt.0.3.1.js @@ -237,7 +237,11 @@ define(function () { root = location.pathname.replace(/[^\/]$/, '$&'); // Change the URL - location.replace(root + location.search + '#!/' + fragment); + if(history.pushState()){ + history.pushState(null, document.title, location.search + '#!/' + fragment); + }else{ + location.replace(root + location.search + '#!/' + fragment); + } },