# 手机上显示VDO链接吗？

**URL:** https://meta.discourse.org/t/vdo-links-showing-on-mobile/314479
**Category:** Support
**Tags:** custom-header-links
**Created:** [2021年九月19日 15:42 UTC](https://meta.discourse.org/t/vdo-links-showing-on-mobile/314479 "2021-09-19T15:42:48Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![icaria36](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/icaria36/32/426431_2.png) [@icaria36](https://meta.discourse.org/u/icaria36)
#### Post date: [2021年九月19日 15:42 UTC](https://meta.discourse.org/t/vdo-links-showing-on-mobile/314479/1 "2021-09-19T15:42:48Z")

</div>

您好，我们在三个链接中使用了“vdo”，但它们却显示在移动版本上（由于强制过宽的宽度，导致 UI 被破坏）。

“vdo”对阅读本文的任何人来说是否正常工作？

我们运行的是 2.8.0.beta6 ([eed3773b97](https://github.com/discourse/discourse/commits/eed3773b97a2faa458185d8738c0bf599620f603))。

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [2021年九月20日 21:16 UTC](https://meta.discourse.org/t/vdo-links-showing-on-mobile/314479/2 "2021-09-20T21:16:58Z")

</div>

> [@icaria36](#):
>
> “vdo”对阅读此帖的任何人来说是否正常工作？

我刚刚在最新的 Discourse 代码上测试了这一点，使用了主题组件首次安装时提供的链接示例：

- `外部链接，此链接将在新标签页中打开，https://meta.discourse.org, vdo, blank, remove`
- `最多点赞，点赞数最多的帖子，/latest/?order=op_likes, vdo, self, keep`
- `隐私，我们的隐私政策，/privacy, vdm, self, keep`

当我通过加载 `?mobile_view=1` 查询参数强制我的站点进入移动模式时，前两个链接（设置为 `vdo`）会正确地从头部移除，仅显示最后一个 `vdm` 链接。

---

<div class="post-metadata">

### Author: ![icaria36](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/icaria36/32/426431_2.png) [@icaria36](https://meta.discourse.org/u/icaria36)
#### Post date: [2021年九月21日 06:57 UTC](https://meta.discourse.org/t/vdo-links-showing-on-mobile/314479/3 "2021-09-21T06:57:21Z")

</div>

> [@simon](#):
>
> ?mobile\_view=1

感谢您的测试。在桌面浏览器中使用此参数时，无论是自定义链接还是默认链接，我都获得了正确的结果。

不过，您是否在真实的移动设备上测试过？在 Android 手机上的 Firefox 中，我可以看到默认链接和自定义链接（已禁用桌面模式）。Discourse 界面的其余部分显示为常规的移动 UI。

（如果我在移动浏览器的 URL 中手动输入 `?mobile_view=1` 参数，链接会跟随 vdo。）

编辑：我还在 Chrome 移动版上进行了测试，在那里它也能正常工作。我很困惑，但也稍微松了口气。🙂
