# 连接到“类别内”搜索的最佳方法是什么？

**URL:** <https://meta.discourse.org/t/best-way-to-link-to-an-in-category-search/33983>\
**Category:** Support\
**Created:** [2015年十月1日 08:29 UTC](https://meta.discourse.org/t/best-way-to-link-to-an-in-category-search/33983 "2015-10-01T08:29:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bartv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bartv/32/130052_2.png) [@bartv](https://meta.discourse.org/u/bartv)\
**Post date:** [2015年十月1日 08:29 UTC](https://meta.discourse.org/t/best-way-to-link-to-an-in-category-search/33983/1 "2015-10-01T08:29:03Z")

</div>

Hi,

We’d like to help our users search in our support forum by including a link or search field in a sticky message. I’ve tried using a link that contains the ‘category:’ filter, like:

[http://forum.sketchfab.com/search?q=category%3Asupport](http://forum.sketchfab.com/search?q=category%3Asupport)

While this works, it also leaves the text ‘category:support’ in the search box and we feel like this may be confusing (many users may just delete that text and enter their query) :

 ![](https://global.discourse-cdn.com/meta/original/3X/4/3/4303e3ab5cec0cc8e6c895cff93492ad4fc3bb5d.png)

Is there a way around this? Or even better, is there a way that we can embed the search field directly into a post?

Thanks!

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2015年十月1日 12:13 UTC](https://meta.discourse.org/t/best-way-to-link-to-an-in-category-search/33983/2 "2015-10-01T12:13:18Z")

</div>

I need to clean some internals up, but you have

[https://meta.discourse.org/search?context=category&context\_id=1&q=Test&skip\_context=false](https://meta.discourse.org/search?context=category&context_id=1&q=Test&skip_context=false)

---

<div class="post-metadata">

**Author:** ![bartv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bartv/32/130052_2.png) [@bartv](https://meta.discourse.org/u/bartv)\
**Post date:** [2015年十月1日 12:30 UTC](https://meta.discourse.org/t/best-way-to-link-to-an-in-category-search/33983/3 "2015-10-01T12:30:52Z")

</div>

Brilliant, thanks! It worked (although finding the category ID was a bit of a challenge 😉

---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [2024年六月8日 12:46 UTC](https://meta.discourse.org/t/best-way-to-link-to-an-in-category-search/33983/4 "2024-06-08T12:46:04Z")

</div>

此主题已在 3173 天后自动关闭。不再允许回复。
