abp icon indicating copy to clipboard operation
abp copied to clipboard

Overriding logoUrl in DefaultBrandingProvider always rendring null string

Open aelhadi opened this issue 5 years ago • 1 comments

Hello, I'm trying to override LogoUrl in my OrgAEBrandingProvider : DefaultBrandingProvider as bellow :

[Dependency(ReplaceServices = true)]
    public class OrgAEBrandingProvider : DefaultBrandingProvider
    {
        public override string AppName => "OrgAE Admin";
        public override string LogoUrl => "/logo.png";
    }

my logo file is in wwwroot folder (Always copied)

to be sure i also added :

Configure<AbpBundlingOptions>(options =>
            {
                options.StyleBundles.Configure(
                    BasicThemeBundles.Styles.Global,
                    bundle =>
                    {
                        bundle.AddFiles("/global-styles.css");
                        bundle.AddFiles("/logo.png");
                    }
                );
            });

the AppName take effect but LogoUrl not, in the rendered html the href is as :

<a class="navbar-brand" href="/">OrgAE Admin</a>'
``
Abp  v4.0.1


Regards.

aelhadi avatar Dec 18 '20 09:12 aelhadi

after looking to source code :

https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/Themes/Basic/Components/Brand/Default.cshtml

should be updated ....

aelhadi avatar Dec 18 '20 10:12 aelhadi