0
jackmcelhinney created
- ABP Framework version: v4.4.4
- UI type: Angular
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): no
Hello. For Angular projects using authorization code flow, clicking the logo on the login, logout, and reset password pages by default redirects to the swagger page - i.e. href="/". Is there a way to easily override this link without overriding all of these pages? I currently have only replaced the logo from wwwroot/images/logo and the AppName from a custom BrandingProvider.
Thanks!
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
2 Answer(s)
-
0
Solved this by overriding the Lepton
HeaderBrandViewComponent:Created
Default.cshtmlin theHostproject atThemes/Lepton/Components/Header/Brand/Default.cshtml:@using Volo.Abp.Ui.Branding @using Microsoft.Extensions.Configuration; @inject IConfiguration _config @inject IBrandingProvider BrandingProvider <a class="navbar-brand" href="@_config["App:AngularUrl"]" alt="@BrandingProvider.AppName"></a>It may be nice at some point to add the href url to the
BrandingProviderso those using angular can make all the necessary overrides for the login pages in one place.Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)