Skip to content

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

Closed
@klebba

Description

@klebba

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions