Oh this is interesting, if you take that code and change it to
<script type="text/discourse-plugin" version="0.4">
api.decorateWidget('header-buttons:after', helper => {
const showExtraInfo = helper.attrs.minimized;
if(!showExtraInfo) {
return helper.h('a.blog-link', {href:'https://blog.example.com', target:'_blank'}, 'Visit our blog');
}
});
</script>
It will open in a new window just fine.
So there seems to be a difference in how the clicks are handled when it is home-logo:after
versus header-buttons:after