# Avatars don't show when using a custom port

**URL:** https://meta.discourse.org/t/avatars-dont-show-when-using-a-custom-port/35427
**Category:** Bug
**Created:** [10. November 2015 um 17:24 UTC](https://meta.discourse.org/t/avatars-dont-show-when-using-a-custom-port/35427 "2015-11-10T17:24:37Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Karl\_Wolf](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/karl_wolf/32/122117_2.png) [@Karl\_Wolf](https://meta.discourse.org/u/Karl_Wolf)
#### Post date: [10. November 2015 um 17:24 UTC](https://meta.discourse.org/t/avatars-dont-show-when-using-a-custom-port/35427/1 "2015-11-10T17:24:37Z")

</div>

Since the latest update no custom avatars are showing anymore. I’ve traced this back to the fact that the template tries to render

`http://example.com:12345/user_avatar/example.com:12345/joe/120/149_1.png`

when

`http://example.com:12345/user_avatar/example.com/joe/120/149_1.png` (without the port)

is the correct location of the Avatar.

Is this any misconfiguration on my end or a bug?

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [10. November 2015 um 17:37 UTC](https://meta.discourse.org/t/avatars-dont-show-when-using-a-custom-port/35427/2 "2015-11-10T17:37:40Z")

</div>

It does seem like a bug, but is there any particular reason you have to use a port? URLs are much nicer without them 😄

---

<div class="post-metadata">

### Author: ![Karl\_Wolf](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/karl_wolf/32/122117_2.png) [@Karl\_Wolf](https://meta.discourse.org/u/Karl_Wolf)
#### Post date: [10. November 2015 um 19:08 UTC](https://meta.discourse.org/t/avatars-dont-show-when-using-a-custom-port/35427/3 "2015-11-10T19:08:39Z")

</div>

You’re right 😉 Took this as a motivation to finally proxy it to port 80 on a subdomain – should still be fixed I guess 😄

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [10. November 2015 um 19:22 UTC](https://meta.discourse.org/t/avatars-dont-show-when-using-a-custom-port/35427/4 "2015-11-10T19:22:19Z")

</div>

I agree but it’s a super low priority 😄

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [11. November 2015 um 02:19 UTC](https://meta.discourse.org/t/avatars-dont-show-when-using-a-custom-port/35427/5 "2015-11-11T02:19:44Z")

</div>


