Router location:Auto problem


#1

I recently started using Ember Cli, and it sets the Router location to “auto” per default. This works great when I use the “ember server”.

However when I build a dist to another express server the routes stop working. If I disable location auto, it works.

Any ideas why location auto works in one case and not the other?


#2

Same issue after deployment. Ember passes urls to Apache server, which can’t handle them. Just moved my application to ember-cli, hadn’t such problem with plain JS.

BTW, I do ember build --environment=development because production doesn’t work for me at all, haven’t yet figured out why.


#3

Found solution to my problem. It’s Apache handles URLs instead of Ember. The solution is to use FallbackResource directive: Apache rewrite rule for HTML5 browser history URL bookmarkability