Skip to content

fix(doc): rewrite content-only images#506

Merged
LeoMcA merged 2 commits intomainfrom
fred-904-rewrite-image-fallback-urls
Feb 3, 2026
Merged

fix(doc): rewrite content-only images#506
LeoMcA merged 2 commits intomainfrom
fred-904-rewrite-image-fallback-urls

Conversation

@caugner
Copy link
Contributor

@caugner caugner commented Jan 30, 2026

Description

Updates the image handling logic to rewrite URLs to content-only images in translated-content.

Motivation

Ensure that the images display, without needing custom handling like in our Cloud Function.

Additional details

Tested locally by:

  1. Running npm run dev in mdn/fred
  2. Running cargo run serve in this branch
  3. Opening http://localhost:3000/fr/docs/Learn_web_development/Getting_started/Your_first_website/What_will_your_website_look_like#esquisse_de_votre_concept
Before After
image image

Related issues and pull requests

Fixes mdn/fred#904.

@github-actions
Copy link
Contributor

da7514d was deployed to: https://rari-pr506.review.mdn.allizom.net/

@LeoMcA LeoMcA merged commit a458583 into main Feb 3, 2026
18 checks passed
@LeoMcA LeoMcA deleted the fred-904-rewrite-image-fallback-urls branch February 3, 2026 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(dev/qol) Images are not retrieved when they are only in content

2 participants