# S3 with CDN image link broken on user card and profile background

**URL:** <https://meta.discourse.org/t/s3-with-cdn-image-link-broken-on-user-card-and-profile-background/29286>\
**Category:** Bug\
**Tags:** uploads, cdn\
**Created:** [2015 年5 月 27 日 01:13 UTC](https://meta.discourse.org/t/s3-with-cdn-image-link-broken-on-user-card-and-profile-background/29286 "2015-05-27T01:13:40Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

作者： ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
发布日期： [2015 年5 月 27 日 02:04 UTC](https://meta.discourse.org/t/s3-with-cdn-image-link-broken-on-user-card-and-profile-background/29286/3 "2015-05-27T02:04:48Z")

</div>

Post this it works:

[https://github.com/discourse/discourse/commit/a988cd5abeaeff94463027f02dded5aa3ee9f372](https://github.com/discourse/discourse/commit/a988cd5abeaeff94463027f02dded5aa3ee9f372)

However we need to change our storage schema for S3 optimized images (and all optimised images) to allow us to send avatar templates down to the client to avoid the redirection.

---

_[View the full topic](https://meta.discourse.org/t/s3-with-cdn-image-link-broken-on-user-card-and-profile-background/29286)._
