I have web application with spring-security. To some pages I have configured anonymous access So the flow is like:
indexPage --> firstPage --> secondPage -- thirdPage
To all this pages I can access straight by entering url in browser or by pressing "Next" button on previous page. However when I click browser back button, I've been redirecting to indexPage doesn't metter in which page I currently stay. How can I avoid such behavior?
Thanks
PS
Next button makes json request
$.getJSON("/home/<some_address>.json?mail="+email, function(data) {
if(data.success)
{
console.log("Data ok!");
window.location.replace("/home/<next_page>.html?mail="+email);
}else{
//handle error
}
});
问题是window.location.replace()
应该是window.location = ""
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.