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 December 13, 2024, 06:09