Skip to content

[6.x] Multisite - Fix localization switch sending the browser to /entries/null - #15230

Open
jaygeorge wants to merge 1 commit into
6.xfrom
entries-null
Open

[6.x] Multisite - Fix localization switch sending the browser to /entries/null#15230
jaygeorge wants to merge 1 commit into
6.xfrom
entries-null

Conversation

@jaygeorge

Copy link
Copy Markdown
Contributor

Description of the Problem

Creating a new localization rewrites the browser URL to /entries/null.
Even though the page will continue to save, the URL does not change which means a refresh breaks the page.

2026-08-21 at 13 30 56@2x

What this PR Does

Wait until after a successful load before updating history so we don't stringify null into the path.

How to Reproduce

  1. Enable multisite
  2. On an entry, choose a localization that doesn't exist yet (e.g. origin confirmation modal appears)
  3. The URL switches to /entries/null and stays broken even after the localization is created; refreshing fails

Missing localizations have a null edit URL. Wait until after a successful load before updating history so we don't stringify null into the path.
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.

1 participant