Removing appended forward slash from URL in Ember.js when using link-to

172 views Asked by At

I am new to ember and am liking it so far but I am hoping someone can help me with the URLs in my site.

I can load a template in ember using a url that looks something like this:

www.test.com/#home

and it will load up the home template, no problem.

But if I use a link-to home from inside the site, the URL will look like this:

www.test.com/#/home

I want the links to always look like the first example.

Any ideas?

1

There are 1 answers

0
vijay kani On

Give href as "#/home"

<a class="ember-view selected" href="#/home">Home</a>

Refer this http://todomvc.com/examples/emberjs/ ember Demo TODO