Does anyone have any approaches for switching from Hashes to the HTML5 History API (which is done through Ember's API 1.0.0)? I have an SP site in which the default.aspx page loads Ember then routes currently are off of the root by using hashes ex: http://webserver/#/home.
I implemented a solution using App.Router's location and rootURL (shown above). In addition I used IIS Rewrite rules to perform redirects if a user navigates directly to /home (requesting http://webserver/home redirects the user to http://webserver/pages/default.aspx/home). Ultimately what I'm trying to do is remove "/pages/default.aspx" from being present in window.location.pathname. The problem is that Ember is loaded from default.aspx so none of the other routes work unless the rootURL is in place.
Anyone have any suggestions?
Thanks!
Aucun commentaire:
Enregistrer un commentaire