diff --git a/modules/mixins/utils.js b/modules/mixins/utils.js index 6029982f..6309c399 100644 --- a/modules/mixins/utils.js +++ b/modules/mixins/utils.js @@ -5,9 +5,9 @@ const pushHash = (hash) => { : '#' + hash : ''; - if(history.pushState) { + if(history.replaceState) { let loc = window.location; - history.pushState(null, null, hash ? loc.pathname + loc.search + hash + history.replaceState(null, null, hash ? loc.pathname + loc.search + hash // remove hash : loc.pathname + loc.search); } else {