Skip to content

design: readable image URLs - #4844

Open
swissky wants to merge 1 commit into
emdash-cms:mainfrom
swissky:design/readable-image-urls
Open

swissky wants to merge 1 commit into
emdash-cms:mainfrom
swissky:design/readable-image-urls

Conversation

@swissky

@swissky swissky commented Nov 13, 2026

Copy link
Copy Markdown
Member

Design proposal

Proposal: proposals/readable-image-urls.md

Optimized EmDash media images render as /_image?href=...%2F01M77BTW....png&w=1200..., so no public image URL carries a descriptive file name. This RFC adds a path URL under the image endpoint that ends in a readable name, for example /_image/01M77BTW3VVBRX0ZSQDTRMCDPM/co-author-illustration-1200x536.webp. It applies to existing media too, keeps storage keys unchanged, and keeps every /_image?href=... URL working.

It describes two URL shapes and leaves the choice open: the media ID in the path (no migration, no new query on page renders) or a unique slug only, as WordPress does (needs a slug column, a backfill and a slug history table).

Proposal type

  • Feature plan
  • RFC
  • Amendment, supersession, or withdrawal

Related work

Discussion: #1502

The Discussion proposed slugged storage keys on upload. The RFC lists that approach under Alternatives.

Related pending design: #4735 (cache media files in the route cache). It caches /_image variants by storage key. This RFC states how path-form responses use the same cache tag. Neither proposal changes the other.

Related pending design: #4765 (SEO foundation). It requires og:image and the graph's primary image to share one URL. This RFC keeps both on the original file URL and leaves open whether a readable original URL should replace it, which would need an amendment to #4765.

Readiness

  • The proposal identifies its author and, for an RFC, its champion and Maintainer sponsor
  • The proposal describes observable behavior, compatibility, failure handling, and verification in proportion to its risk
  • Conflicting accepted or pending proposals are reconciled in this pull request
  • This pull request contains no implementation code
  • The proposal status is accepted (check only when ready to merge)

AI assistance

  • This proposal used AI assistance — model/tool: Claude Opus 5.5

@changeset-bot

changeset-bot Bot commented Nov 13, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 65e1e5f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@swissky
swissky marked this pull request as ready for review November 14, 2026 07:22
@github-actions

Copy link
Copy Markdown
Contributor

Approval status

The current revision does not meet the approval requirements yet.

  • ❌ 1 human Maintainer approval from someone other than the author (normal change); found 0.
  • ✅ The RFC sponsor @swissky opened this pull request.
  • ❌ Support from a Maintainer other than the author and the Project Lead.
  • ❌ The Project Lead @ascorbic has not accepted the RFC.
  • ✅ No outstanding change requests.

This comment updates as reviews arrive. See MAINTAINING.md and the proposal process for the rules.

@github-actions github-actions Bot added the review/needs-review No maintainer or bot review yet label Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant