jQuery Mobile, making change page work.

Written by - Saumya

15 February 2014

The last post about the change page API change of jQuery Mobile tells you as to, how to change a page, in the new API. I was hoping thats the only change, but there seems, some kind of fix necessary to make a page, change properly. I mean, there is this bug, where the page change actually does this. It goes to the page mentioned by the change page and then it comes back to the page again, from where it was moved. So the effect is, the page is not chaged at all and the user looks at a screen, where the application simply moves to another screen and comesback to the original screen.
For me the fix that worked is send changeHash:true in the options object of the API.

Happy coding.