Aperto Chiuso

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 creato

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 risposte
  • User Avatar
    0
    Mehmet creato

    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 creato

    Hi @Mehmet

    I am using version 4.2 and MVC razor pages

  • User Avatar
    0
    maliming creato
    Team di supporto 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 creato
    Team di supporto Automatic process manager

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

Made with ❤️ on ABP v8.2.0-preview Updated on marzo 25, 2024, 15:11