Avatar image path in quoted text

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.

Why? You can infer the absolute path.

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

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.

2 Likes