I deploy to netlify using ng build --prod, and the website works. But when I go to it, it automatically changes the link by adding /home onto the e
ng build --prod
/home
I had named my build directory wrongly from the original directory name i used to create the project
In your angular.json check under the projects property for the name of the build directory, in my case bci
So your Publish directory should be dist/bci on netlify