1

How to remove #(hash) from URL in ember application (non - CLI). I am using ember v2.15.

  • Welcome to StackOverflow! Please read the info about [how to ask a good question](https://stackoverflow.com/help/how-to-ask) and [how to give a reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example). This will make it much easier for others to help you. – Aditi Mar 21 '18 at 06:54

1 Answers1

2

Have a look at the location documentation.

You can specify which type you want.

Setting location to history on EmberRouter will remove the hash from the url and instead use browser history. To disable it altogether, set location to none.

const Router = EmberRouter.extend({
  location: 'none',
  rootURL: '/'
})
alizahid
  • 959
  • 6
  • 17