meetmahpuppy
meetmahpuppy

Reputation: 428

EmberJS production website don't have hash on urls

I'm learning some MV* frameworks, and looks at emberjs. I'm learning the framework and it seems really nice. I just look at some of emberJS example websites and I noticed that the transition of their pages don't have the hash(#) on urls? Why is that? On my localhost, I got ('#')/page on url. Can you explain to me why is that?

Upvotes: 0

Views: 89

Answers (1)

cfstras
cfstras

Reputation: 1858

App.Router.reopen({
  location: 'history'
});

Keep in mind that all the URLs used by your app need to serve your Ember index.html, or reloading those pages will not work.

More info: Guides - Specifying the URL Type

Upvotes: 3

Related Questions