Why 'src' appears in address bar in Angular App?

Issue

I am learning Angular 4 with ASP.NET Web API Template in Backend. I added routing in my app. It works fine but there is redundant folder name appears in Address Bar Like this. How can I remove this?

My Project Structure is here.

Solution

OK, none of the answer is acceptable, but everyone’s answer and comments helped me a lot. Thanks guys.

Following @kamrul-hasan-shahed I changed my <base href="/src/"> to <base href="/">, but no luck. Then I study @erik-funkenbusch ‘s comment and cut all my files & folders of /src folder and paste all in root directory. Then it works.

Answered By – Md. Rasedur Rahman Roxy

Answer Checked By – Katrina (AngularFixing Volunteer)

Leave a Reply

Your email address will not be published.