How to inject base href? Technology Community › Category: Angular › How to inject base href? 0 Vote Up Vote Down VietMX Staff asked 4 years ago When building you can modify base tag (<base href="/">) in your index.html with --base-href your-url option. # Sets base tag href to /myUrl/ in your index.html ng build --base-href /myUrl/