routing and clean path (no hashtag) not working in angularJS

后端 未结 3 916
[愿得一人]
[愿得一人] 2021-01-21 22:57

Guys this is driving me crazy, been fighting for hours on this, and couldn\'t find a solution!

I know that in order to clean the hashtag from the URL path, i need to use

3条回答
  •  自闭症患者
    2021-01-21 23:24

    I resolve this issue by adding a in web.xml

    When you refresh the target page manually, will redirect the 404page to your main page. And then angular router will take in effect to route this to target page.

提交回复
热议问题