Starts in:
1 DAY
10 HRS
20 MIN
16 SEC
Starts in:
1 D
10 H
20 M
16 S
Open Closed

Is it possible to have the logo in the tool bar redirect the user to another site rather than the home page? #1004


User avatar
0
jtallon created

Hi, I want to change the href of the logo on the top left of my abp solution. At the I am using javascript to change the href of the class "navbar-brand" but I don't like doing this incase the name of the class changes in an update. Is there any easier why to change this reference?


4 Answer(s)
  • User Avatar
    0
    Mehmet created

    Hi @jtallon

    Can you answer the foıllowing questions so that we can help you better:

    • Which UI framework are you using?
    • What is the version of ABP packages?
  • User Avatar
    0
    jtallon created

    Hi @Mehmet

    I am using version 4.2 and MVC razor pages

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi @jtallon

    You can override the HeaderBrandViewComponent to change the href.

    Volo.Abp.AspNetCore.Mvc.UI.Theme.Lepton\Themes\Lepton\Components\Header\Brand\HeaderBrandViewComponent.cs

    @using Volo.Abp.Ui.Branding
    @inject IBrandingProvider BrandingProvider
    <a class="navbar-brand" href="~/" alt="@BrandingProvider.AppName"></a>
    
  • User Avatar
    0
    ServiceBot created
    Support Team Automatic process manager

    This question has been automatically marked as stale because it has not had recent activity.

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