diff --git a/themes/intotheeast/templates/trip.html.twig b/themes/intotheeast/templates/trip.html.twig index 3d2f169..93d79a6 100644 --- a/themes/intotheeast/templates/trip.html.twig +++ b/themes/intotheeast/templates/trip.html.twig @@ -567,6 +567,7 @@ document.addEventListener('DOMContentLoaded', function () { var threshold = window.innerHeight * 0.8; var shown = false; btn.addEventListener('click', function () { + history.pushState(null, '', window.location.pathname + window.location.search); window.scrollTo({ top: 0, behavior: 'smooth' }); }); window.addEventListener('scroll', function () {