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
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.