# Links to media break in copy or quote when "secure media" is on

**URL:** <https://meta.discourse.org/t/links-to-media-break-in-copy-or-quote-when-secure-media-is-on/167370>\
**Category:** Bug\
**Created:** [October 16, 2020, 2:41pm UTC](https://meta.discourse.org/t/links-to-media-break-in-copy-or-quote-when-secure-media-is-on/167370 "2020-10-16T14:41:42Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Alon1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alon1/32/197167_2.png) [@Alon1](https://meta.discourse.org/u/Alon1)\
**Post date:** [October 16, 2020, 2:41pm UTC](https://meta.discourse.org/t/links-to-media-break-in-copy-or-quote-when-secure-media-is-on/167370/1 "2020-10-16T14:41:42Z")

</div>

Steps to reproduce:

1. Enable secure media
2. Create a new topic and drag media (pdf file would do nicely)
3. Reply to your own topic with a copy-paste of the media (or just quote yourself)

Now you can observe that clicking on the original media attachment works fine, but clicking on the quoted/copied media link (even though it is the **exact same link** ) leads to error page:  
 ![image](https://global.discourse-cdn.com/meta/original/3X/6/6/66d1822a0b074367efaeb4b38df01e36ae9c8ff6.png)  
I suspect it might have to do with the referrer tag because that is the only difference.

---

_[View the full topic](https://meta.discourse.org/t/links-to-media-break-in-copy-or-quote-when-secure-media-is-on/167370)._
