# Redirect search icon to search page

**URL:** <https://meta.discourse.org/t/redirect-search-icon-to-search-page/206436>\
**Category:** Support\
**Created:** [October 19, 2021, 2:02pm UTC](https://meta.discourse.org/t/redirect-search-icon-to-search-page/206436 "2021-10-19T14:02:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![VaypeNaysh420](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vaypenaysh420/32/135147_2.png) [@VaypeNaysh420](https://meta.discourse.org/u/VaypeNaysh420)\
**Post date:** [October 19, 2021, 2:02pm UTC](https://meta.discourse.org/t/redirect-search-icon-to-search-page/206436/1 "2021-10-19T14:02:32Z")

</div>

Might you know of a quick and easy way to make it so when someone clicks the search icon, instead of having that input field popup, visitor will be redirected to discourse.local/ **search?expanded=true?**

You think it would be best if I just used a component [custom icon header](https://meta.discourse.org/t/custom-header-links/90588) or [link](https://github.com/discourse/discourse-icon-header-links) and used CSS to hide that icon?

---

<div class="post-metadata">

**Author:** ![manuel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manuel/32/468169_2.png) [@manuel](https://meta.discourse.org/u/manuel)\
**Post date:** [October 19, 2021, 2:15pm UTC](https://meta.discourse.org/t/redirect-search-icon-to-search-page/206436/2 "2021-10-19T14:15:19Z")

</div>

Not sure if that’s the quickest/easiest/best way, but, yes, that’s what I did so far in case:

- hide the default icon with css
- add a custom icon with the icon-header-links component
- link that icon to your custom page

Though I’d combine it with either customizing the expanded search view. Or actually directing to a custom Docs page.

---

<div class="post-metadata">

**Author:** ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)\
**Post date:** [October 19, 2021, 2:50pm UTC](https://meta.discourse.org/t/redirect-search-icon-to-search-page/206436/3 "2021-10-19T14:50:13Z")

</div>

Are you sure you want to do that?

The search panel is context-aware. So, it gives your users a much more nuanced search experience.

- Search for user posts when on a user page
- Search in category when on a category page
- Search in tag when on a tag page
- Search in topic when on a topic page

It also gives them an option to search globally on all of those pages.

Making the search icon redirect to `/search` means that you lose all of that unless users input that information manually or select them in the full page search options.
