Les images se cassent lorsque la page est traduite automatiquement par une extension de traduction de navigateur (S3/R2 + CDN est correctement configuré)

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.

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

My recommendation would be to use our native translation

1 « J'aime »