diff --git a/script.js b/script.js index dab7178..8de278b 100644 --- a/script.js +++ b/script.js @@ -66,8 +66,7 @@ function updateUrl() { if (elements[index] && !window.location.href.includes(elements[index].id)) { const hash = 'index.html#' + elements[index].id; - console.log("pouet"); - window.history.pushState(null, null, hash); + window.history.replaceState(null, null, hash); } }