# Imagem quebrada no Discourse (mas funciona na prévia da mensagem)

**URL:** <https://meta.discourse.org/t/broken-image-in-discourse-but-they-work-in-the-message-preview/90429>\
**Category:** WordPress\
**Created:** [Junho 21, 2018, 10:39pm UTC](https://meta.discourse.org/t/broken-image-in-discourse-but-they-work-in-the-message-preview/90429 "2018-06-21T22:39:42Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [Junho 21, 2018, 10:39pm UTC](https://meta.discourse.org/t/broken-image-in-discourse-but-they-work-in-the-message-preview/90429/1 "2018-06-21T22:39:42Z")

</div>

Hi,  
When I publish a WP post to Discourse, the images won’t show up:

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/c/2cd4d254d18e9e84ca10290ad5d0f275f625a383.png)

But they do show up in the message preview if I edit the topic.

 ![image](https://global.discourse-cdn.com/meta/original/3X/7/d/7d13f8d7218a7b76cf75cc6bc6450900a31943df.png)

Saving the edit or rebuilding the message HTML don’t fix it.  
Typical HTML of such an image is:

```html
<img class="wp-image-157219 size-full aligncenter" src="http://monocycle.info/wp-content/uploads/2018/06/catégories-e1529598284988.png" alt="" width="400" height="364" />

```

Any idea?

edit: I may have understood why.  
The domain monocycle.info has been locally redirected to the server I’m working on, which is where my WordPress is installed. I did the redirection via the hosts windows file.  
But Discourse doesn’t have this redirection, so I guess it has to read these images URLs by itself before somewhat delivering them on the message, and so it can’t find these image?  
Not 100% sure this is the cause, but since my website will be launched in a few days, I’ll figure out when the domain will be globally redirected to my server.

---

_[View the full topic](https://meta.discourse.org/t/broken-image-in-discourse-but-they-work-in-the-message-preview/90429)._
