# 链接到“创建新主题”并通过查询变量传递标签和类别？

**URL:** <https://meta.discourse.org/t/link-to-create-new-topic-and-passing-tag-and-category-with-query-var/248514>\
**Category:** Support\
**Created:** [2022年十二月11日 06:34 UTC](https://meta.discourse.org/t/link-to-create-new-topic-and-passing-tag-and-category-with-query-var/248514 "2022-12-11T06:34:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jack\_Sparrow](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jack_sparrow/32/244906_2.png) [@Jack\_Sparrow](https://meta.discourse.org/u/Jack_Sparrow)\
**Post date:** [2022年十二月11日 06:34 UTC](https://meta.discourse.org/t/link-to-create-new-topic-and-passing-tag-and-category-with-query-var/248514/1 "2022-12-11T06:34:09Z")

</div>

我为我的网站有一个支持论坛。因此，我想添加一个静态链接，该链接应将用户带到论坛的帖子编辑器，并为用户选择类别和标签。类似于 `https://forum.example.com/?create_topic&tag[]=rest-api&tag[]=email&category=support`。  
如果用户未登录，他们将被提示到登录/注册页面，然后继续进入编辑器。它可以是独立的编辑器（据我所知，Discourse 不支持独立的编辑器页面）或默认的编辑器提示。

---

<div class="post-metadata">

**Author:** ![rorycb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rorycb/32/423647_2.png) [@rorycb](https://meta.discourse.org/u/rorycb)\
**Post date:** [2022年十二月11日 13:13 UTC](https://meta.discourse.org/t/link-to-create-new-topic-and-passing-tag-and-category-with-query-var/248514/2 "2022-12-11T13:13:55Z")

</div>

我认为这个 [Creating a link to start a new topic with pre-filled information](https://meta.discourse.org/t/create-a-link-to-start-a-new-topic-with-pre-filled-information/28074) 是您想要的？

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2023年一月10日 13:14 UTC](https://meta.discourse.org/t/link-to-create-new-topic-and-passing-tag-and-category-with-query-var/248514/3 "2023-01-10T13:14:19Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
