I have a PhoneGap/JQuery Mobile application which has a 'Settings' page with a 'Back' button in the header, used to go back to the previous page. I need the previous page to refresh when the back button is clicked.
I have managed to get this working on a Desktop browser by using document.referrer by doing $.mobile.changePage(referrer, {reloadPage:"true"}); but a referrer doesn't seem to exist on an Android PhoneGap application.
I have tried adding data-ajax="false" and data-rel="external" on the back button but this doesn't work and I have searched for answers all over and not found anything relevant.
Thanks.