Logo links per block

Hello Softers,

I have several navigations depending on visibility. Does anyone have an idea for making the logo link different for each navigation?

Hey @yannick, you will find how to add a logo link to your app header block here: How to change the url of logo click - #3 by rebeccajane Please check the treads to learn about how to add different logo links.

1 Like

I don’t have an explanation, but it doesn’t work on all pages :person_shrugging:t2:
So, I’ve used an alternative that’s a bit flimsy on the necessary pages :

<script>
  window.onload = function() {
    var link = document.querySelector(".navbar-brand");
    if (link) {
      link.setAttribute("href", "#");
    }
  };
</script>

(In this case, I wanted to reload the same page so I used #, but you can replace the pound sign with any URL)

Thanks a lot for the code!