问题
I have a 3 page structure like this:
index.html
test.html
folder1/page1.html
I use this script for navigation:
$(".navigate").on("vclick", function(event){
event.preventDefault();
$.mobile.navigate($(this).attr("id")+".html");
});
Each page has a link like this:
index.html => <a class="navigate" id="test">TEST</a>
test.html => <a class = "navigate" id="folder1/page1">PAGE1</a>
All navigations use Ajax transitions.
The problem is when I navigate to page1.html via index.html -> test.html and from page1.html, if I navigate back to index.html using the browser back button and again navigate to page1.html as stated above my page1.html, it automatically redirects back to events.html, but the URL will be showing the proper address of page1.html
What is happening here?
来源:https://stackoverflow.com/questions/22588061/navigation-problems-in-jquery1-4-1