Til
Member
Did anyone figured this out?
The script as it is:
<script>
history.replaceState(null, document.title, location.pathname+"#!/redirect.php");
history.pushState(null, document.title, location.pathname);
window.addEventListener("popstate", function() {
if(location.hash === "#!/redirect.php") {
setTimeout(function(){
location.replace("path-to-back-button-redirect");
},0);
}
}, false);
</script>
Ive tried a lot of things of inserting this, but I cant get it to work.
The script as it is:
<script>
history.replaceState(null, document.title, location.pathname+"#!/redirect.php");
history.pushState(null, document.title, location.pathname);
window.addEventListener("popstate", function() {
if(location.hash === "#!/redirect.php") {
setTimeout(function(){
location.replace("path-to-back-button-redirect");
},0);
}
}, false);
</script>
Ive tried a lot of things of inserting this, but I cant get it to work.