documentcloud/backbone — Issue #745: Mobile's back button not working - backbone.js 0.5.3 with jquerymobile 1.0 RC2
Author: mpradhan
Created: 2011-11-11 22:36:18+00:00
State: open

When using the navigate method with triggerRoute = true; the page navigates fine to the new page but history is not updated.

When hitting the back button on an android device (nexus S), the history pops, but the navigation does not happen.

If I pass "false" for the triggerRoute and then call "Backbone.history.loadUrl();" Then the back button does work but sort of erratically.

The navigate method has this comment ....
// URL-encoding the fragment in advance. This does not trigger
// a `hashchange` event.

After reading several posts, it seems to me that using the navigate method is the right way and should update the history...

Code snippet ...

er.getApp().getController().navigate('home', true);

OR

er.getApp().getController().navigate('home');
Backbone.history.loadUrl();

Is there a known routing issue with jquerymobile and backbone combination ?