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.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 13, 2025, 04:08