Skip to content

[bot] Fix #1242: Admin content edit route should preserve locale for slug-based i18n entries - #1307

Merged
ascorbic merged 5 commits into
mainfrom
bot/fix-1242
Jun 12, 2026
Merged

ascorbic merged 5 commits into
mainfrom
bot/fix-1242

Conversation

@emdashbot

@emdashbot emdashbot Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Closes #1242.

@ascorbic confirmed this fix resolves the issue:

@emdashbot confirm

See #1242 for the investigation trail.

Opened automatically by the investigation bot. A maintainer should review before merge.

@changeset-bot

changeset-bot Bot commented Jun 2, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b1318ef

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 14 packages
Name Type
@emdash-cms/admin Patch
emdash Patch
@emdash-cms/cloudflare Patch
@emdash-cms/sandbox-workerd Patch
@emdash-cms/fixture-perf-site Patch
@emdash-cms/perf-demo-site Patch
@emdash-cms/cache-demo-site Patch
@emdash-cms/auth Patch
@emdash-cms/blocks Patch
@emdash-cms/gutenberg-to-portable-text Patch
@emdash-cms/x402 Patch
create-emdash Patch
@emdash-cms/auth-atproto Patch
@emdash-cms/plugin-embeds Patch

Not sure what this means? Click here to learn what changesets are.

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

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 2, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
docs b1318ef Jun 12 2026, 09:14 AM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 2, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
emdash-playground b1318ef Jun 12 2026, 09:15 AM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 2, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
emdash-demo-cache b1318ef Jun 12 2026, 09:14 AM

@pkg-pr-new

pkg-pr-new Bot commented Jun 2, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@emdash-cms/admin

npm i https://pkg.pr.new/@emdash-cms/admin@1307

@emdash-cms/auth

npm i https://pkg.pr.new/@emdash-cms/auth@1307

@emdash-cms/auth-atproto

npm i https://pkg.pr.new/@emdash-cms/auth-atproto@1307

@emdash-cms/blocks

npm i https://pkg.pr.new/@emdash-cms/blocks@1307

@emdash-cms/cloudflare

npm i https://pkg.pr.new/@emdash-cms/cloudflare@1307

@emdash-cms/contentful-to-portable-text

npm i https://pkg.pr.new/@emdash-cms/contentful-to-portable-text@1307

emdash

npm i https://pkg.pr.new/emdash@1307

create-emdash

npm i https://pkg.pr.new/create-emdash@1307

@emdash-cms/gutenberg-to-portable-text

npm i https://pkg.pr.new/@emdash-cms/gutenberg-to-portable-text@1307

@emdash-cms/plugin-cli

npm i https://pkg.pr.new/@emdash-cms/plugin-cli@1307

@emdash-cms/plugin-types

npm i https://pkg.pr.new/@emdash-cms/plugin-types@1307

@emdash-cms/registry-client

npm i https://pkg.pr.new/@emdash-cms/registry-client@1307

@emdash-cms/registry-lexicons

npm i https://pkg.pr.new/@emdash-cms/registry-lexicons@1307

@emdash-cms/sandbox-workerd

npm i https://pkg.pr.new/@emdash-cms/sandbox-workerd@1307

@emdash-cms/x402

npm i https://pkg.pr.new/@emdash-cms/x402@1307

@emdash-cms/plugin-ai-moderation

npm i https://pkg.pr.new/@emdash-cms/plugin-ai-moderation@1307

@emdash-cms/plugin-atproto

npm i https://pkg.pr.new/@emdash-cms/plugin-atproto@1307

@emdash-cms/plugin-audit-log

npm i https://pkg.pr.new/@emdash-cms/plugin-audit-log@1307

@emdash-cms/plugin-color

npm i https://pkg.pr.new/@emdash-cms/plugin-color@1307

@emdash-cms/plugin-embeds

npm i https://pkg.pr.new/@emdash-cms/plugin-embeds@1307

@emdash-cms/plugin-field-kit

npm i https://pkg.pr.new/@emdash-cms/plugin-field-kit@1307

@emdash-cms/plugin-forms

npm i https://pkg.pr.new/@emdash-cms/plugin-forms@1307

@emdash-cms/plugin-webhook-notifier

npm i https://pkg.pr.new/@emdash-cms/plugin-webhook-notifier@1307

commit: b1318ef

@ascorbic ascorbic added the bot:review Trigger an emdashbot code review on this PR label Jun 2, 2026
@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Overlapping PRs

This PR modifies files that are also changed by other open PRs:

This may cause merge conflicts or duplicated work. A maintainer will coordinate.

emdashbot Bot and others added 3 commits June 3, 2026 20:56
The create-new flow navigated to the edit route without a locale search
param, while edit links and translation navigation now append one. That
asymmetry made the i18n e2e test's full-URL equality assertion fail when
navigating back to the default-locale entry.
Main's #1302 already added locale reading to the PUT content-update
route. Drop this branch's duplicate declaration (kept main's
request.url form, which the existing route test exercises) so the
merged PUT handler has a single `locale`. The branch's remaining core
contribution is locale on DELETE and the publish/unpublish/schedule/
discard-draft sub-action routes.
ascorbic added 2 commits June 12, 2026 07:41
The edit route now carries a ?locale= search param (#1242), so the
CONTENT_EDIT_URL_PATTERN assertions in the i18n, content-crud,
field-widgets, and bylines specs (which anchored on the ULID) need to
tolerate an optional query string.

Also forward locale on the content list title link, matching the pencil
edit button, so clicking the title scopes the editor to the entry's
locale instead of falling back to the default.
@ascorbic
ascorbic merged commit cedfcc5 into main Jun 12, 2026
46 checks passed
@ascorbic
ascorbic deleted the bot/fix-1242 branch June 12, 2026 09:43
@emdashbot emdashbot Bot mentioned this pull request Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Admin content edit route should preserve locale for slug-based i18n entries

1 participant