You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
i am using jquerymobile 1.2 with phonegap 2.2.0 on IOS.
i have an app that starts with the index.html in www-folder of the phonegap app. via ajax i will load other pages/listviews in dom.
index.html -> list1 -> list2 -> detail. on each page the back-buttons works
at this stage the back-button does not work anymore. it will try to load the "local" index-file from webserver. i see log entries in error.log at this stage someting went wrong.
i fixed it with:
var homeUrl;
function onDeviceReady() {
homeUrl = $.mobile.urlHistory.stack[0].url;
}
// fix nach klick auf home, klappt der back auf home nicht mehr zuverlässig
$( document ).on( "pagebeforechange" , function(event, data) {
if (data.toPage == homeUrl) {
data.toPage = 'file://' + data.toPage;
}
});