qiankun icon indicating copy to clipboard operation
qiankun copied to clipboard

Correct invocation of the sub-app services

Open amic81 opened this issue 3 years ago • 1 comments

Hi,

I am trying to integrate an Angular application as a sub application that invokes services at a specific server/port (localhost:XXXX), which as a single application it's works. Integrated as a sub-app in qiankun, however the services that are called no longer point to the correct server/port, but to that of the main app.

Example: if previously the services pointed to localhost:9000 now as a sub-app point to localhost:7099.

How can I do to keep the Angular application pointing correctly?

Thanks

amic81 avatar Nov 16 '21 09:11 amic81

Because the URL of your sub application request uses a relative path, it will be relative to the url of the current page。You should use absolute path

gongshun avatar Nov 17 '21 06:11 gongshun