Skip to content Skip to sidebar Skip to footer

Angular 5 Routing Issue

I am using Angular 5 for my frontend application and Java for the server side stuff. I have an issue with Angular routing. My problem is: When a user enters this URL http://exampl

Solution 1:

Remove that .htaccess code and make use of <base href="/public/">

Your .htaccess will always check for the path other than index.html and redirect to it.

index.html

<head><basehref="/public/"><!-- Rest of your code here --></head>

Post a Comment for "Angular 5 Routing Issue"