Closed
Description
On IE11 after you open application from bookmark, change state and open the same bookmark again than nothing happens. I'd like to attach very simple zip which demonstrates that but zip files are not supported, so here is example code and steps to reproduce:
-
First, create very simple application: index.html, state1.html, state2.html, app.js (routing configuration). Sources are provided at the end of description.
-
Create bookmark in IE11:
http://localhost/ang_app/index.html#/1
-
Start new IE11 session, start application via bookmark created at step 2.
-
Click on link 'State 2' and observe that application changes it's state as expected.
- Click ON BOOKMARK that you created in step 2 again. Observe application behavior: URL hash changed to '1' but application state does not reflect the change and stays in state '2'.
index.html:
<!DOCTYPE html>
<html ng-app="myApp">
<head>
<script src="angular.js"></script>
<script src="angular-ui-router.js"></script>
<script src="app.js"></script>
</head>
<body>
<div ui-view></div>
<a href="#/1">State 1</a>
<a href="#/2">State 2</a>
</body>
</html>
state1.html:
<h1>State 1</h1>
state2.html:
<h1>State 2</h1>
app.js:
var myApp = angular.module('myApp', ['ui.router']);
myApp.config(function($stateProvider, $urlRouterProvider) {
//
// For any unmatched url, redirect to /state1
$urlRouterProvider.otherwise("/state1");
//
// Now set up the states
$stateProvider
.state('1', {
url: "/1",
templateUrl: "state1.html"
})
.state('2', {
url: "/2",
templateUrl: "state2.html"
})
});
Additional info:
angular: v1.2.19
ui-router: v0.2.10
Windows 8.1
IE11:
Any help will be appreciated!
Metadata
Metadata
Assignees
Labels
No labels