I'm creating a basic Ember application and I want a forward slash /
to be appended to the end of every URL. This is so I can use anchor links without the entire page reloading once.
For example, if I go to localhost:4200/posts
and have an anchor link to /posts/#top
, the first time the page will reload because the original URL is /posts
and not /posts/
.
Now I already know how to append a forward slash to the end of every URL using Javascript, but my question is how to do it with Ember. Is there a file where I can define this rule for every route in my application? Or would I have to define these rules for every single route I want to add a forward slash?
Aucun commentaire:
Enregistrer un commentaire