# Oneboxing 在使用预填信息创建主题时不起作用

**URL:** <https://meta.discourse.org/t/oneboxing-not-working-when-starting-a-topic-with-pre-filled-information/272797>\
**Category:** Product Support\
**Tags:** onebox\
**Created:** [2023 年7 月 25 日 17:53 UTC](https://meta.discourse.org/t/oneboxing-not-working-when-starting-a-topic-with-pre-filled-information/272797 "2023-07-25T17:53:17Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![ethang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ethang/32/297870_2.png) [@ethang](https://meta.discourse.org/u/ethang)\
发布日期： [2023 年7 月 25 日 17:53 UTC](https://meta.discourse.org/t/oneboxing-not-working-when-starting-a-topic-with-pre-filled-information/272797/1 "2023-07-25T17:53:17Z")

</div>

[在元 Discourse 论坛上创建链接以启动带有预填充信息的新主题](https://meta.discourse.org/t/create-a-link-to-start-a-new-topic-with-pre-filled-information/28074) 上的文档说明：

> [@techAPJ](#):
>
> 此功能还支持“通过粘贴链接启动主题（类似 Reddit）”[Start a topic by pasting a link (like Reddit)](https://meta.discourse.org/t/start-a-topic-by-pasting-a-link-like-reddit/54071)，前提是正文不存在，例如：
> 
> `https://meta.discourse.org/new-topic?title=https://www.xkcd.com/556`

但是，即使直接复制粘贴所列示例，重定向似乎也会从 `title=` 后面的 URL 中删除一个斜杠，导致浏览器导航到 `https://meta.discourse.org/new-topic?title=https:/www.xkcd.com/556`，从而打开一个带有预填充标题 `https:/www.xkcd.com/556` 的新主题撰写窗口。正如 [Start a topic by pasting a link (like Reddit)](https://meta.discourse.org/t/start-a-topic-by-pasting-a-link-like-reddit/54071) 中所述的行为和 oneboxing 显然不会发生，除非您手动在标题 URL 中添加另一个 `/`。

我第一次遇到此行为是在我托管的 Discourse 上进行尝试，并认为我可能配置有误，但既然提供的示例也出现了这种情况，这似乎是一个错误？

---

_[View the full topic](https://meta.discourse.org/t/oneboxing-not-working-when-starting-a-topic-with-pre-filled-information/272797)._
