Search code examples
ember.jsember-cli

BaseURL in Ember CLI application with IE9 support


For my Ember CLI application I want to use a baseURL, as described here. It works very well for the History API, but for the old Hash API it won't work as expected.

My configuration:

module.exports = function(environment) {
    var ENV = {
        environment: environment,
        baseURL: '/base/',
        locationType: 'auto',
        ...
    };

    ...

    return ENV;
}

In IE9 i got localhost:4200/#/base/login instead of localhost:4200/base#/login. Going manually to this page results in a blank (white) page.


Solution

  • It's a known issue apparently: http://github.com/stefanpenner/ember-cli/issues/417