Skip to content

ui-router not working in iframe in IE11 & Firefox #2718

@robinelvin

Description

@robinelvin

Admittedly I'm not entirely sure this is caused by ui-router but I am suspecting due to the nature of the issue.

I have an Angular app manually bootstrapped on my page which works fine. I have defined just 1 state (for now) which has some parameters defined. e.g. /ng/chart/#/board/parent/1/

I have a click handler which opens a UI Bootstrap modal inside of which is an iframe with ng-src set to a scope variable.

This issue only affects IE11 and Firefox. In Chrome it works perfectly.

The issue is that if the ng-src variable is set to any URL on my site it loads fine apart from the single state URL where it does nothing. And I mean absolutely nothing as confirmed by looking at the network tab and the console. The iframe src attribute is set correctly. If I inspect this attribute and change it to some other url e.g. /testpage then the iframe loads that content. If I change it to /ng/chart/#/board/child/2/ it again does nothing and the old content is still displayed.

Now, I am making the assumption that because the browser is not even trying to load the page that somehow ui-router is intercepting the URL and doing nothing. I tried listening for $stateChangeStart but this never gets fired.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions