Open Closed

Issue with DefaultBrandingProvider #1930


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

I've implemented the DefaultBrandingProvider class to put the logon on the identity server 'login' screen and it does not use the image I provided in the logoUrl property.


1 Answer(s)
  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi @Spospisil, you need to override LogoReverseUrl in YourProjectBrandingProvider on your *.Web layer.

    [Dependency(ReplaceServices = true)]
    public class YourProjectBrandingProvider : DefaultBrandingProvider
    {
      public override string AppName => "YourProjectName";
    
      public override string LogoReverseUrl => "/images/logo/abp-purple.png"; //override LogoReverseUrl
    }
    

    I've added an image under wwwroot/images/logo named abp-purple.png. And I've also cleared the cache to see the result.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11