1

I want to serve my Ember application ALWAYS with trailing-slashes. That also means that any route accessed like myapp.com/cool-page would be rewritten/redirect to as myapp.com/cool-page.

How can I accomplish that?

1 Answer 1

1

I think it's better do add a trailing slash via your server settings, not sure what you are using, but have a look at this if you're using apache.

It should be possible to add the slash with Ember, but the problem is that it will first load your app, then it will observe that there is no slash so it will redirect with a slash causing your app to reload.

When handling it with a mod rewrite as described above, the URL will be captured before loading the ember app.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.