Open Closed

Browser errors for link-users and athourity-delegation #5270


User avatar
0
balessi75 created

ABP Commercial 7.2.1 / Blazor Server / EF / Non tiered / Separate Host and Tenant DBs / Lepton Theme

Hi, on ABP Commercial 7.2.1, we are receiving the following. We reproduced the error with a newly created solution. abp new ABP.Test -u blazor-server -v 7.2.1 -theme lepton

Please advise.

Regards, Brian


3 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I will check it

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    You can try:

    public class TestMenuContributor : IMenuContributor
    {
        public async Task ConfigureMenuAsync(MenuConfigurationContext context)
        {
            if (context.Menu.Name == StandardMenus.User)
            {
                context.Menu.GetMenuItemOrNull("Account.LinkedAccounts").Url = "/account/Manage";
                context.Menu.GetMenuItemOrNull("Account.AuthorityDelegation").Url = "/account/Manage";
            }
        }
    }
    
    public class MyBundleContributor : BundleContributor
    {
        public override void ConfigureBundle(BundleConfigurationContext context)
        {
            context.Files.RemoveAll(x => x.Contains("link-user") || x.Contains("authority-delegation"));
        }
    }
    
    Configure<AbpBundlingOptions>(options =>
    {
        options.ScriptBundles.Configure(
            BlazorLeptonThemeBundles.Scripts.Global,
            bundle =>
            {
                bundle.Contributors.Add<MyBundleContributor>();
                
            }
        );
    });
    
  • User Avatar
    0
    balessi75 created

    Hi @liangshiwei ,

    Thank you! This resolved the issue for us and also taught us a few things about ABP overrides.

    I will close the issue.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09