M
M
Maxim2018-02-26 13:48:58
Angular
Maxim, 2018-02-26 13:48:58

Angular, what if the application is not in the root directory?

Tell me what to do if the application on Angular is not in the root directory of the site.
For example, at mysite.com/ru.
I changed the line in index.html to locally everything works fine, but when I build the application and upload it to the host in the directory, it says in the console that it is trying to access files like polyfills ... bundle.js, which it searches for in the root directory of the site .
<base href="/">
<base href="/ru">

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question