Page reload fails when using Angular Ui Router with Html5 mode enabled

后端 未结 7 1353
醉酒成梦
醉酒成梦 2020-12-03 03:41

I am using Angular UI Router in my angular app and i have enabled HTML5 mode to remove the # form the URL by using $locationProvider in the config.



        
7条回答
  •  旧巷少年郎
    2020-12-03 04:19

    If you cannot configure your server, configure your web.xml with the following to handle refresh while the user is on an html5 push path.

    
        
        404
        /index.html
    
    

提交回复
热议问题