Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
back buttons are now going back "too far" #1870
I'm testing out beta1 and read about the back button change. I've modified my simple site which consists of three pages:
I've added data-add-back-btn="true" to the div's with data-role of page and the buttons are now appearing again. The defect is that when I click from index to subpage, then subpage to subsubpage, the back link in the upper left takes me all the way back to the index page instead of the subpage.
The links between the pages are normal A links going to separate actual pages through the default ajax (they are not separate divs within one single page).
Digging deeper, I found that history.back() is executed twice because of this line:
Disabling fastClick should be a valid workaround, but that does not work either, see #1869.
BTW: The problem appeared on both Chrome 13beta and Firefox 5. I did not yet bother testing on a mobile device.
Still have issues with iOS.. Also an intentional doubletab/click will mosdef take you 2 pages back, and a tripple tab/click wil wil take you back 3 pages. I tried this with http://www.jquerymobile.com/test/ -> Pages and dialogs -> Dialogs -> Open first dialog.. Tapping close muliple times. 3 times takes me back to front page of ../test/
Also the initial problem still occour - where you click (or intend to click) only once - and it takes you back 2 pages. Though not as common as before, tried with newest JQM-source (g7451a4b) on my dev site.
Lastly, using Firefox 3.6.17 - will go 2 pages back everytime.