I'm having challenges with the behavior of the back button. If I have several internal pages and click through multiple levels then BACK does not navigate back through the levels to return to top level.
See below for the set of pages.
Steps to reproduce.
1) Open file - #MainMenu is shown
2) Click "About" link - #AboutPage is shown
3) Click "Details" link - #AboutDetailPage is shown
4) Click back button - #AboutPage is shown
5) Click back button - #AboutDetailPage is shown (My expectation here is the #MainMenu
should be shown)
6) Click back button - #AboutPage is shown
I get the same behavior using the browser's back button or the auto generated button on the header.
Here's the pages I'm testing with:
- <div id="MainMenu" data-role="page" >
- <div data-role="header">
- <h1>MobileTest</h1>
- </div>
- <div data-role="content">
- <ul data-role="listview">
- <li><a href="#AboutPage">About</a></li>
- <li><a href="#TestPage">Test Page</a></li>
- </ul>
- </div>
- </div>
- <div id="AboutPage" data-role="page" >
- <div data-role="header">
- <h1>About</h1>
- </div>
- <div data-role="content">
- <h2>About</h2>
- <a href="#AboutDetailPage" />Details</a>
- </div>
- </div>
-
- <div id="AboutDetailPage" data-role="page" >
- <div data-role="header">
- <h1>About-Details</h1>
- </div>
- <div data-role="content">
- <h2>About-Details</h2>
- </div>
- </div>
- <div id="TestPage" data-role="page" >
- <div data-role="header">
- <h1>Test</h1>
- </div>
- <div data-role="content">
- <h2>Test Page</h2>
- </div>
- </div>