Skip to content

[6.x] Fix switching sites when creating a term - #15938

Merged
duncanmcclean merged 1 commit into
6.xfrom
11884
Nov 16, 2026
Merged

duncanmcclean merged 1 commit into
6.xfrom
11884

Conversation

@duncanmcclean

@duncanmcclean duncanmcclean commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

This pull request fixes an issue where you couldn't switch sites when creating a term. This happened both on the term create page and in the stack opened from a Terms field.

This was happening because the term publish form treated the other site like a missing localization of an existing term, and tried to POST to {create url}/localize. That route only exists for saved terms, so it 404'd and nothing happened.

This PR fixes it by loading the other site's create form in place. Unlike entries, which redirect to the other site's create URL, it does this without a redirect so the stack stays open over the entry you're editing.

This PR also keys the publish container by site, so the slug field remounts and continues generating from the title after switching.

Before

11884-before.mp4

After

11884-after.mp4

Fixes #11884

Amp thread: https://ampcode.com/threads/T-01a1e4ec-f841-7259-a38d-0451bf2a2ec5

@duncanmcclean
duncanmcclean merged commit 3a39877 into 6.x Nov 16, 2026
66 checks passed
@duncanmcclean
duncanmcclean deleted the 11884 branch November 16, 2026 16:24
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.

Can't create new taxonomy term in non-active site

2 participants