# Vimeo嵌入URL在邮件中解析错误

**URL:** <https://meta.discourse.org/t/vimeo-embed-urls-parsed-incorrectly-in-email/231042>\
**Category:** Bug\
**Created:** [2022 年6 月 24 日 17:56 UTC](https://meta.discourse.org/t/vimeo-embed-urls-parsed-incorrectly-in-email/231042 "2022-06-24T17:56:20Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)\
发布日期： [2022 年6 月 24 日 17:56 UTC](https://meta.discourse.org/t/vimeo-embed-urls-parsed-incorrectly-in-email/231042/1 "2022-06-24T17:56:21Z")

</div>

Vimeo 提供两种类型的网址：直接链接（`https://vimeo.com/508864124/fcbbcc92fa`）和嵌入链接（可在 iframe 中使用，但直接点击无效）。

例如：

```plaintext
<iframe src="https://player.vimeo.com/video/508864124?h=fcbbcc92fa" width="640" height="360" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen></iframe>

```

1. 当此内容作为通知电子邮件发送时，直接链接显示正确，但 iframe 被替换为具有错误 URL 的链接：`https://vimeo.com/508864124?h=fcbbcc92fa` 而不是 `https://player.vimeo.com/video/508864124?h=fcbbcc92fa`。

2. 是否有办法完全绕过 iframe 到 URL 的转换？就像我们已经对投票所做的那样，它会显示类似“点击此处查看投票”的内容。

---

_[View the full topic](https://meta.discourse.org/t/vimeo-embed-urls-parsed-incorrectly-in-email/231042)._
