Images break when the page is auto-translated by a browser translation extension (S3/R2 + CDN is configured correctly)

When a browser translation add-on rewrites the topic page, some post images stop rendering. If I disable the translator, all images show and the domains are correct. This looks like the translator mutates the cooked HTML in a way that bypasses Discourse’s upload URL rewriting/lazy-load logic.

Environment

  • Discourse: 3.6.0.beta1-dev

  • Hosting: standard Docker app container

  • Uploads: Cloudflare R2

  • With the translator disabled, reloading the same topic renders all images normally. Right-click “Copy image address” then shows the expected CDN URL.

1 Like

I am pretty sure Discourse can not control this. Plenty of issues exist:

My recommendation would be to use our native translation

2 Likes