Hi all! How can I make angular ui-router work with html5mode=true automatically? I mean:
In angular, you have the link like this href="#/abc". If you set html5mode=true, it automatically redirect to /abc when you click on link abc. If html5mode=false, it keeps #/abc. So, nothing need to change in your html code.
In angular ui-router, if you plan to enable html5mode=true, you need to change all link from html code to something like: (without #). If html5mode=false, you need to have # in url.
So, how to fix it in angular ui-router? Thanks for advice!
I am using springboot and angularjs 1.7.x I removed hashbang using html5mode enable, but not able to download file from server. response status is 404 always.
Hi all! How can I make angular ui-router work with html5mode=true automatically? I mean:
In angular, you have the link like this href="#/abc". If you set html5mode=true, it automatically redirect to /abc when you click on link abc. If html5mode=false, it keeps #/abc. So, nothing need to change in your html code.
In angular ui-router, if you plan to enable html5mode=true, you need to change all link from html code to something like: (without #). If html5mode=false, you need to have # in url.
So, how to fix it in angular ui-router? Thanks for advice!