lundi 27 juillet 2015

is there a way to prevent editing the url manually in Ember-cli

In ember-cli is there a way to prevent the user from modifying or entering the url i.e, the url should change when the path changes (when transition occurs) but when the user tries to refresh/modify it - it should display 'page not found' or should redirect to the index page. with some research i came to know that using location: 'none' in environment.js will not display the changed url. but what i want is that the changed url should be visible but the user shouldn't able to manually modify or refresh the url.




Aucun commentaire:

Enregistrer un commentaire