# 使用 /new-topic?tags=some-tag URL 时没有登录提示

**URL:** <https://meta.discourse.org/t/no-login-prompt-with-new-topic-tags-some-tag-url/256076>\
**Category:** Bug\
**Created:** [2023年二月23日 16:18 UTC](https://meta.discourse.org/t/no-login-prompt-with-new-topic-tags-some-tag-url/256076 "2023-02-23T16:18:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![renato](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/renato/32/383632_2.png) [@renato](https://meta.discourse.org/u/renato)\
**Post date:** [2023年二月23日 16:18 UTC](https://meta.discourse.org/t/no-login-prompt-with-new-topic-tags-some-tag-url/256076/1 "2023-02-23T16:18:04Z")

</div>

要在无痕窗口或未登录状态下重现此问题，请打开 [https://meta.discourse.org/new-topic?tags=chat](https://meta.discourse.org/new-topic?tags=chat)：它会重定向到 `/latest`，但没有登录弹出窗口。

如果删除 `tags` 查询参数或使用 `category`（例如 [https://meta.discourse.org/new-topic?category=support](https://meta.discourse.org/new-topic?category=support)），则会按预期启动登录流程。

我在测试时注意到的另一个（非常）小问题是，如果您使用 `/new-topic?tags=restricted-tag`，它仍然会在标签字段中填充一个无法保存的标签，例如 [https://meta.discourse.org/new-topic?tags=official](https://meta.discourse.org/new-topic?tags=official)。

---

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [2023年二月24日 15:27 UTC](https://meta.discourse.org/t/no-login-prompt-with-new-topic-tags-some-tag-url/256076/2 "2023-02-24T15:27:16Z")

</div>

我能够重现该问题。

[https://meta.discourse.org/new-topic?title=topic%20title&body=topic%20body&category=support/wordpress&tags=wordpress](https://meta.discourse.org/new-topic?title=topic%20title&body=topic%20body&category=support/wordpress&tags=wordpress) 不会打开登录弹出窗口。

[https://meta.discourse.org/new-topic?title=topic%20title&body=topic%20body&category=support/wordpress](https://meta.discourse.org/new-topic?title=topic%20title&body=topic%20body&category=support/wordpress) 会打开它。
