# Avatar image path in quoted text

**URL:** <https://meta.discourse.org/t/avatar-image-path-in-quoted-text/58788>\
**Category:** Development\
**Created:** [2017年三月9日 23:37 UTC](https://meta.discourse.org/t/avatar-image-path-in-quoted-text/58788 "2017-03-09T23:37:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [2017年三月9日 23:37 UTC](https://meta.discourse.org/t/avatar-image-path-in-quoted-text/58788/1 "2017-03-09T23:37:07Z")

</div>

Would it be possible for the avatar image `src` in quoted text to be changed so that it get’s the absolute path to the avatar image instead of the relative path?

Currently, with the wp-discourse plugin, if a comment with quoted text in it is pulled over to WordPress, the avatar image is returning a 404 error.

---

<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:** [2017年三月9日 23:58 UTC](https://meta.discourse.org/t/avatar-image-path-in-quoted-text/58788/2 "2017-03-09T23:58:08Z")

</div>

Why? You can infer the absolute path.

---

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [2017年三月10日 00:02 UTC](https://meta.discourse.org/t/avatar-image-path-in-quoted-text/58788/3 "2017-03-10T00:02:38Z")

</div>

I’m just trying to avoid doing a search and replace on the text. But sure, I can do that.

---

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [2017年三月10日 02:46 UTC](https://meta.discourse.org/t/avatar-image-path-in-quoted-text/58788/4 "2017-03-10T02:46:50Z")

</div>

Now that I’ve looked at it some more, the avatar image `src` in quoted text _is_ an absolute path. Someone raised an issue about this on GitHub, but I’ve only seen the problem in their forum.

In local development, WordPress validation makes a mess of URLs that contain a port number, so I was reproducing the problem they were seeing, but not for the same reason.
