$(document).ready(function () {
window.history.pushState("", "", "#");
});
window.addEventListener("popstate", function (e) {
// alert(1)
// alert(window.history.length);
if( window.history.length == 2){
window.location.href = "/";
}else{
window.history.go(-1);
}
})