0
votes

I have an angular app I want to render my app from /en/myapp/ URL I find a solution with base href I can solve it, however, it raises a bigger problem it also changes assets URL, for example, /main.css is changed to /en/myapp/main.css and I don't want that and if I set base href to / angular router service consider /en/myapp as internal angular routes which is't and render 404 component so how to start my angular app form specific route without any change in assets files URL?

UPDATE

My server route is not fixed it is something like this /en/:username and in this route, I render angular index page so I can't use deploy-url option in angular-cli.

1

1 Answers

1
votes

Try using the --deploy-url option.

ng build --base-href /en/myapp --deploy-url /