I am using Webpack and building multiple angular apps. I am having some issue with routing. This issue only comes when i have $locationProvider.html5Mode(true); in my angular code.
Let say my base URL is abc.com
App 1: abc.com/app1
App 2: abc.com/app2
Now lets say I am on one of these and go to a sub route of any of these app.
abc.com/app1/sub-route1 or abc.com/app2/sub-route2
This scenario works fine. The issue comes when I do refresh or reload from browser. In that case it redirects to abc.com rather than staying on
abc.com/app1/sub-route1 or abc.com/app2/sub-route2
This does not happen if I use $locationProvider.html5Mode(false);