Repository navigation
Conversation
|
swissky
marked this pull request as ready for review
November 14, 2026 07:22
Contributor
Approval statusThe current revision does not meet the approval requirements yet.
This comment updates as reviews arrive. See MAINTAINING.md and the proposal process for the rules. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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
/_imagevariants 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:imageand 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
accepted(check only when ready to merge)AI assistance