I can browse to my route fine but if I refresh the page; as shown in the attached image, I get a directory listing instead of my template refreshing.
My router.js is pretty simple:
Router.map(function() {
this.route('assets');
});
Any ideas?
I can browse to my route fine but if I refresh the page; as shown in the attached image, I get a directory listing instead of my template refreshing.
My router.js is pretty simple:
Router.map(function() {
this.route('assets');
});
Any ideas?
I’m guessing using ‘assets’ for a route name is not a good idea? I changed it to ‘asseters’ and it worked fine.
or updating my environment.js to…
locationType: 'hash',
assets might be bad as it conflicts with a folder you need, but in general this is something you have to configure your server to handle. With locationType: auto
, if the ember app can’t be found at the url requested, you’ll just get whatever the server wants to give you for that url by default. You’ll need to configure the various paths to redirect the app to your app’s html file.