Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

IE 10/11 - browser back does not work if in iframe #6264

Open
@romario333

Description

@romario333

If you put Angular application which uses ngRoute into the iframe, it does not work correctly in IE: routing seems to be working, however when you press browser back button, you are always taken to the initial route.

I see this bug on Angular 1.2.12 and IE 10 and 11.

See this simple example for reproduction: Open index.html in IE, navigate from route1 to route2 to route3, then press back and you're taken all the way back to route1. In Chrome and Firefox this issue does not exist and history behaves as expected.

As a workaround for this bug I'm disabling HTML history API support for IE by monkey-patching $sniffer like this:

if ($.browser.msie) {
    $provide.decorator('$sniffer', function($delegate) {
      $delegate.history = false;
      return $delegate;
    });
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions