Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IE9: Redirecting to / with html5Mode(true) on sample app #69

Closed
klebba opened this issue Apr 1, 2013 · 2 comments
Closed

IE9: Redirecting to / with html5Mode(true) on sample app #69

klebba opened this issue Apr 1, 2013 · 2 comments

Comments

@klebba
Copy link

klebba commented Apr 1, 2013

I notice the demonstration of ui-router does not work with html5mode(true) -- is it a known issue that it does not work with pushState?

I have an angular application at a URL like: http://mywebsite.com/admin with routes like http://mywebsite.com/admin/users where /users is defined as a state:

$locationProvider.html5Mode(true);

[...]

$stateProvider
    .state('admin', {
        url: '/admin'
    })
    .state('admin.users', {
        url: '/users'
    });

When the page loads in IE9 the browser flashes the /admin/index.html page contents and then immediately redirects to http://mywebsite.com/

I am aware of a problem with redirection in IE9, thought it seems unrelated:
angular/angular.js#1417

Either way I suppose the only way to make the ui-router work with applications that don't live at the domain root is to turn off html5mode. Can you confirm this is true?

Thanks!

@ksperling
Copy link
Contributor

ui-router simply uses $location, so html5mode should just work, but any problems $location has with html5mode on IE9 will of course affect you as well.

@klebba
Copy link
Author

klebba commented Apr 1, 2013

Ok, good to know. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants