Skip to content
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
@marcuskrahl

Description

@marcuskrahl

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:

  1. Go to http://jsbin.com/uroran/4/
  2. Go to the second page
  3. Either of the buttons should take you back to the first page
  4. Go back to the second page
  5. 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).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions