Skip to content

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

Open
emdashbot[bot] wants to merge 3 commits into
mainfrom
bot/fix-1242
Open

[bot] Fix #1242: Admin content edit route should preserve locale for slug-based i18n entries#1307
emdashbot[bot] wants to merge 3 commits into
mainfrom
bot/fix-1242

Conversation

@emdashbot
Copy link
Copy Markdown
Contributor

@emdashbot emdashbot Bot commented Jun 2, 2026

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
Copy link
Copy Markdown

changeset-bot Bot commented Jun 2, 2026

🦋 Changeset detected

Latest commit: b238b6e

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
Copy link
Copy Markdown

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

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 b238b6e Jun 03 2026, 08:17 PM

@cloudflare-workers-and-pages
Copy link
Copy Markdown

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

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 b238b6e Jun 03 2026, 08:17 PM

@cloudflare-workers-and-pages
Copy link
Copy Markdown

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

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 b238b6e Jun 03 2026, 08:17 PM

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Jun 2, 2026

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: b238b6e

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

github-actions Bot commented Jun 3, 2026

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.
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.

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

1 participant