Activities of "Jsg"

Hello,

My problem is solved, it was my fault.

Sorry for inconvenience.

  • 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 2 of 2 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on December 26, 2024, 06:07