This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
Make a link with data-rel="back" use the href if there is no history #5950
Open
Description
There seems to be a navigation issue in Internet Explorer for Windows Phone 8 (tested on a HTC Windows Phone 8S).
You can reproduce this issue with the following steps:
- Go to http://jsbin.com/uroran/4/
- Go to the second page
- Either of the buttons should take you back to the first page
- Go back to the second page
- Close the browser and open it again
Expected result:
Either of the buttons on page 2 can take you back to page 1
Actual result:
Only the third button (using $.mobile.navigate) can take you back to page 1.
The reason for this seems to be that IE wipes the history on closing. That's why also the hardware back button does not work anymore.
If your navigation relies on going back in the navigation history (like mine does) you may get stuck on a page (if the only option to leave a page is via a data-rel="back" button).