How to adjust the path of the lazy modules angular 7?
Written in angular application with routing and a large number of lazily loaded modules (when routing)
the application runs on a website running on Bitrix and the application has a dedicated section on the website with a special template.
For those who do not know what it was about, in General terms, the user browses to www.site.ru/application/ (or www.site.ru/application/bla/bla - then connect the first routing Bitrix, and sends the request to the processing on the file www.site.ru/application/index.php and there already it will become the angular routing), then open the file www.site.ru/application/index.php where is the connectivity kernel of Bitrix, etc., Beatrix finds that this section of the site should be used a website template that I specifically made for this application and will included it.
In the end, actually the template files are pulled out of www.site.ru/local/templates/application/ and for module files that are loaded when the application starts no problem, they are loaded from there where I specify to upload, but the rest of the modules, the problem - angular app "sees" base as www.site.ru/application/ and, accordingly, will attempt to lazy load the modules
And it is necessary to make somehow that they were loaded from