# Help us test the new header code!

**URL:** https://meta.discourse.org/t/help-us-test-the-new-header-code/43184
**Category:** Feature
**Tags:** performance
**Created:** [April 25, 2016, 3:26pm UTC](https://meta.discourse.org/t/help-us-test-the-new-header-code/43184 "2016-04-25T15:26:24Z")
**Posts on this page:** 1
**Showing post:** 64

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [May 7, 2016, 6:07pm UTC](https://meta.discourse.org/t/help-us-test-the-new-header-code/43184/64 "2016-05-07T18:07:33Z")

</div>

> [@angus](#):
>
> edit I’m probably missing something, but there seems to be a similar issue for the Header Search Plugin. If I insert it after the home-logo widget, i.e. api.decorateWidget(‘home-logo:after’ … it ends up inside the title element, which leads to conflicts with the home-logo click event…

So the way I ended up handling this for now is by overriding the ‘click’ event in the `home-logo` and popping the `routeTo` function in a condition that checks if the target is the site logo

```plaintext
      api.attachWidgetAction('home-logo', 'click', function(e) {
        if (wantsNewWindow(e)) { return false; }
        e.preventDefault();
        if (e.target.id === 'site-logo') {
          DiscourseURL.routeTo(this.href());
        }
        return false;
      })

```

ps. I’ve finished widgetizing the header-search plugin:

> [@Header search plugin](https://meta.discourse.org/t/header-search-plugin/36435/24):
>
> Hey @iminai008 I’ve just committed an update for this plugin so that it’s fully compatible with the new header. I basically had to re-write it, so let me know if there are any issues. Cheers, Angus. [https://github.com/angusmcleod/discourse-header-search/commit/c7131fe7fc3ae52d543fb714b6ed43ee9eb1ba21](https://github.com/angusmcleod/discourse-header-search/commit/c7131fe7fc3ae52d543fb714b6ed43ee9eb1ba21)

---

_[View the full topic](https://meta.discourse.org/t/help-us-test-the-new-header-code/43184)._
