# Behavior of iframes within oneboxes in emails

**URL:** <https://meta.discourse.org/t/behavior-of-iframes-within-oneboxes-in-emails/40160>\
**Category:** Development\
**Created:** [2016 年2 月 25 日 14:31 UTC](https://meta.discourse.org/t/behavior-of-iframes-within-oneboxes-in-emails/40160 "2016-02-25T14:31:20Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

作者： ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)\
发布日期： [2016 年2 月 25 日 18:45 UTC](https://meta.discourse.org/t/behavior-of-iframes-within-oneboxes-in-emails/40160/3 "2016-02-25T18:45:08Z")

</div>

Thank you so much!

[quote=“Simon\_Cossar, post:2, topic:40160”]

````ruby
display_src = "#{src_uri.scheme || 'https://'}#{src_uri.host}#{src_uri.path}"
```[/quote]

This is the culprit and generated the incorrect `httpspseuco.com`-link. I think this is a general bug and [proposed a fix](https://github.com/discourse/discourse/pull/4042) – with this, my emails should at least look okay.
````

---

_[View the full topic](https://meta.discourse.org/t/behavior-of-iframes-within-oneboxes-in-emails/40160)._
