I've prerendered angular app which contains all the index.html pages as per component and module. But when I'm hosting the application and go to some component inside any module it navigates fine and url also looks good, but when I refresh the page from that components it appends / at the end of the url (it is redirecting to myURL/module/component/ from myURL/module/component). How can i fix it, I tried changing basehref in every index.html to match with its path but it didn't work. Also tried adding pathMatch: 'full' property but still it doesn't work. Any idea how to resolve this? Continue reading...