AnsweredAssumed Answered

Logo Hyperlink Broken

Question asked by jgeisen on Dec 14, 2018
Latest reply on Dec 14, 2018 by jgeisen

So, I used to add a hyperlink to my custom header logo in WAB by means of inserting the following code in the specified locations:

 

in config.json:

"title": "Title",
"subtitle": "",
"keepAppState": false,
"logo": "images\\logo.png",
"logoLink": {
"url": "<my url>",
"title": "Title"
},

 

in widget.js of HeaderController:

var logoLinkUrl = lang.getObject('url', false, this.appConfig.logoLink);
if (logoLinkUrl) {
html.setAttr(this.logoNode, 'title', this.appConfig.logoLink.title || logoLinkUrl);
on(this.logoNode, 'click', lang.hitch(this, function() {
window.open(logoLinkUrl);
}));
}

 

For whatever reason, this no longer works. Now, when I click the logo, I get a blank tab. I'm not sure if it's a change somewhere along the way from version 2.2 to version 2.9 (currently using) or something else. Any help would be much appreciated. 

 

Thanks

Outcomes