# 头像和表情包的网址在域名末尾加上:80

**URL:** https://meta.discourse.org/t/urls-for-avatars-emoticons-adding-80-to-the-end-of-the-domain/79090
**Category:** Self-hosting
**Created:** [2018 年1 月 26 日 14:13 UTC](https://meta.discourse.org/t/urls-for-avatars-emoticons-adding-80-to-the-end-of-the-domain/79090 "2018-01-26T14:13:38Z")
**Posts on this page:** 1
**Showing post:** 12

<div class="post-metadata">

### 作者： ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### 发布日期： [2018 年1 月 26 日 22:12 UTC](https://meta.discourse.org/t/urls-for-avatars-emoticons-adding-80-to-the-end-of-the-domain/79090/12 "2018-01-26T22:12:35Z")

</div>

> [@schleifer](#):
>
> That’s not a custom avatar URL

Quite correct, I’d initially assumed it was happening to custom avatars only, now it seems to be inconsistent. Updated issue title and detail accordingly, apologies.

Here’s an example of a user avatar failing:

[https://www.mydomain.org:80/user\_avatar/www.mydomain.org/username/40/615\_1.png](https://www.mydomain.org:80/user_avatar/www.mydomain.org/username/40/615_1.png)

The weird part is that some are rendering correctly, others have :80 added …

It’s seems a little bit like this resolved issue, but I do not have a port number in my DISCOURSE\_HOSTNAME setting:

> [@Avatar not found after updating to 1.4 beta because of port in URL](https://meta.discourse.org/t/avatar-not-found-after-updating-to-1-4-beta-because-of-port-in-url/29632):
>
> As you can see [here](http://cms.di.unipi.it:8000/) avatars are not loading after upgrading to 1.4 beta. [image] The avatar src seems to be: "/user\_avatar/cms.di.unipi.it:8000/wil93/120/6\_1.png", and it looks wrong (the domain is repeated).

---

_[View the full topic](https://meta.discourse.org/t/urls-for-avatars-emoticons-adding-80-to-the-end-of-the-domain/79090)._
