From 101b0e203168e9827737581e82450c0db678f690 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Sto=C5=82owski?= Date: Wed, 5 Dec 2018 13:06:48 +0100 Subject: [PATCH] replace history.pushState to history.replaceState --- modules/mixins/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {