// Fixes back button issue when using history.pushState(); window.onpopstate = e => { window.location = location.href; };