Open Closed

Wrong path of TenantSwitchModal #3140


User avatar
0
nhontran created
  • ABP Framework version: v3.3.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Hi, we are hosting our Identity Server in IIS under a virtual application with the path: /identity/*

and we got the 404 not found when calling the switch tenant popup, we found that it calls the url **/Abp/MultiTenancy/TenantSwitchModal **instead of /identity/Abp/MultiTenancy/TenantSwitchModal due to the code below:

var tenantSwitchModal = new abp.ModalManager(abp.appPath + 'Abp/MultiTenancy/TenantSwitchModal');

May I know how to fix the issue?


2 Answer(s)
  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    You can override the js file.

    In addition to adding new CSS/JavaScript file to a page, you also can replace the existing one (by defining a bundle contributor).

    See more details: https://docs.abp.io/en/abp/latest/UI/AspNetCore/Customization-User-Interface#example-add-a-javascript-file-for-a-specific-page

  • User Avatar
    0
    nhontran created

    Hi, we have followed and override the JavaScript, it works now.

    Thank you.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 12, 2024, 07:15