jquery/jquery-mobile — Issue #2793: Back button issue on mobile platforms
Author: CoatedMoose
Created: 2011-10-21 08:59:12+00:00
State: open

When following links in a multipage document, the back button only ever takes me to the first page.

For example:
multipage document:
page (data-url="Landing Page")
subpage1 (data-url="Sub Page 1"
subpage2 (data-url="Sub Page 2"
subpage3 (data-url="Sub Page 3"

land on 'page'
link to subpage1
link to subpage2
link to subpage3
go back - this step takes you all the way back to 'page', not subpage2, it does the reverse transition, but appears to request the page again. Linking can be done programatically, or by clicking an anchor (href="#Sub Page 1", or $.mobile.changePage("#Sub Page 1") ). Back can be done programatically, browser button, data-rel=back, or hardware button.

This occurs on the iphone simulator and iphone (4.3) and on android 2.2 simulator and device and on android 3.[0-2] device. This occurs in the browser, and in a "WebView" with or without phonegap. Issue does not occur in Chromium 14 and firefox 6 or 7.