Starts in:
1 DAY
2 HRS
31 MIN
10 SEC
Starts in:
1 D
2 H
31 M
10 S

Activities of "Jsg"

  • ABP Framework version: v2.9.0
  • UI type: Angular
  • Tiered (MVC) or Identity Server Seperated (Angular): No

Hello,

When I'm building my Angular app in production with this command "ng-build --prod --baseHref /Course/", the application start correctly but when the app trying to reach api/abp/application-configuration, the url is wrong : https://localhost:44321/Course/undefined/api/abp/application-configuration.

My environment.ts file has https://localhost:44321 as default api url. Is there a way to indicate to the CoreModule to not taking care about the baseHref when it trying to reach api ? Or must I have to create an interceptor to rewrite the url ?

Update: I investigated a little bit more. Firtly, using an interceptor can't work, I don't have the first part of the url (It's start from undefined/api..., and I can't rewrite the missing part). Secondly, I looked the source code of the application-configuration.service.ts file, and it seems the endpoint url can't be rewrited.

I saw the application-configuration call can be skipped in the CoreModule.forRoot(...), is it a good idea to skip it and write my proper application-configuration service with the good url ? And will it work ?

Thanks.

Showing 1 to 1 of 1 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06