Images not showing when topic is created from embedded comments on site site

The issue is related to how the image src is being set on your website. Looking at the post at Welcome to IPFS Weekly 133: April Meetup, Scaling Ethereum, Protocol Labs Resnet Lab, and More | IPFS Blog & News, the image in the post has its src set to

../assets/img/2021-04-14-cardheader-scaling-ethereum-1459531d.1459531d.png

That causes Discourse to set the src to

https://blog.ipfs.io../assets/img/2021-04-14-cardheader-scaling-ethereum-1459531d.1459531d.png

This results in a broken image. Editing the src my browser’s console to https://blog.ipfs.io/../assets/img/2021-04-14-cardheader-scaling-ethereum-1459531d.1459531d.png fixes the issue.

I’m not sure how Discourse should be handling this. I’ll have a closer look at the code that’s used to absolutize the src URL on Discourse and see if there’s anything that can be done.

1 Like