I wanted a way to add a hyperlink to the logo shown at the top left of an ArcGIS Server Web AppBuilder application:
but couldn't see anything out-of-the-box. Here's the approach I came up with.
atag (with a data attribute 'logoLink') around the logo image:
<a data-dojo-attach-point="logoLink"> <img class="logo jimu-float-leading jimu-leading-margin1" data-dojo-attach-point="logoNode"> </a>
postCreatefunction, around line 90:
html.setAttr( this.logoLink, 'href', this.appConfig.logoLink ? this.appConfig.logoLink : "#" );
The result is a hyperlink on the logo, which can be used to either refresh the current page (using "#") or redirect to another page (such as an index page of maps)