jeudi 14 avril 2016

ember baseUrl duplication

I have a Spring based backend, and an ember single page app that is served roughly as described here:

Ember.js, EmberCLI - removing the hash ( # ) from the URL

The dispatching servlet is mapped to serve from /foo.

The production env config is the following:

if (environment === 'production') {
  ENV.baseUrl = '/foo/';
  ENV.locationType = 'auto';
}

Although the dispatching works, the url is duplicated. When i try to visit /foo/account, I'm ending with /foo/foo/account.

Aucun commentaire:

Enregistrer un commentaire