# What should middle clicking the search icon do?

**URL:** <https://meta.discourse.org/t/what-should-middle-clicking-the-search-icon-do/34741>\
**Category:** UX\
**Created:** [21 أكتوبر 2015، 1:47ص UTC](https://meta.discourse.org/t/what-should-middle-clicking-the-search-icon-do/34741 "2015-10-21T01:47:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dandv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dandv/32/169779_2.png) [@dandv](https://meta.discourse.org/u/dandv)\
**Post date:** [21 أكتوبر 2015، 1:47ص UTC](https://meta.discourse.org/t/what-should-middle-clicking-the-search-icon-do/34741/1 "2015-10-21T01:47:25Z")

</div>

1. Navigate to a topic
2. Ctrl/Cmd+click on the magnifying glass, or choose Open link in a new tab from the browser’s context menu.

 ![](https://global.discourse-cdn.com/meta/original/3X/f/7/f7a9e5a2e226511e84842abe012ffb9444c3425e.png)

Looks like `/search` should not be appended to the current `location.href`, but to the host.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [21 أكتوبر 2015، 2:25ص UTC](https://meta.discourse.org/t/what-should-middle-clicking-the-search-icon-do/34741/2 "2015-10-21T02:25:21Z")

</div>

I _guess_ this should work if middle clicking the avatar opens the user profile @eviltrout. Moving this to UX because not a bug. What does middle clicking the hamburger do? That’s my point.

---

<div class="post-metadata">

**Author:** ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)\
**Post date:** [21 أكتوبر 2015، 4:01ص UTC](https://meta.discourse.org/t/what-should-middle-clicking-the-search-icon-do/34741/3 "2015-10-21T04:01:10Z")

</div>

Hmm this might be a bug. I added a `href` sometime back to the search icon so that I can middle click it to go to the full page search. I’ll have a look 🙂

---

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [22 أكتوبر 2015، 8:38م UTC](https://meta.discourse.org/t/what-should-middle-clicking-the-search-icon-do/34741/4 "2015-10-22T20:38:20Z")

</div>

Fixed it here:

[https://github.com/discourse/discourse/commit/1e50883d06c7d44923edfe94dc59b4d374b080ee](https://github.com/discourse/discourse/commit/1e50883d06c7d44923edfe94dc59b4d374b080ee)

---

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [22 أكتوبر 2015، 8:38م UTC](https://meta.discourse.org/t/what-should-middle-clicking-the-search-icon-do/34741/5 "2015-10-22T20:38:23Z")

</div>



---

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [23 أكتوبر 2015، 4:37ص UTC](https://meta.discourse.org/t/what-should-middle-clicking-the-search-icon-do/34741/6 "2015-10-23T04:37:28Z")

</div>

Incorrect for subfolder.

---

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [23 أكتوبر 2015، 4:02م UTC](https://meta.discourse.org/t/what-should-middle-clicking-the-search-icon-do/34741/7 "2015-10-23T16:02:24Z")

</div>

Good catch:

[https://github.com/discourse/discourse/commit/f3d9d1295ab0b72fdf1ef2427b368b9f698a9351](https://github.com/discourse/discourse/commit/f3d9d1295ab0b72fdf1ef2427b368b9f698a9351)
