jquery/jquery-mobile — Issue #2951: history.back : Strange behaviour
Author: StevePo
Created: 2011-11-07 09:21:50+00:00
State: open

Hi there,

i've noticed a strange behaviour when making a history.back call or simply clicking on a data-rel="back" button (which probably is doint the same).

I log the inital page load (mobileinit) and every page change event when typeof(data.toPage) === 'string'.

Now, when I call history.back to an internal page it somehow reloads the page. Here are my debug messages:

Page loaded
Switch to Page1
Switch to Page2
SwitchToPage 3
// Now I call history.back
Page loaded
Switch to Page 1
Switch to Page 2
Switch to Page 3
Switch to Page 2

It looks like the page gets reloaded and then the entire history is called again.

I'am using latest chrome for developing.