fix: update ALL site records in seed, not just is_default_site #9

Merged
mark merged 1 commits from fix/seed-default-site into main 2026-02-28 20:42:25 +00:00
Owner

Wagtail's initial migration creates a localhost:80 site. Wagtail matches incoming requests by hostname before ever checking is_default_site, so updating only the is_default_site record left localhost:80 still pointing at the Welcome page.

Fix: update root_page on every existing site record.

Wagtail's initial migration creates a `localhost:80` site. Wagtail matches incoming requests by hostname before ever checking `is_default_site`, so updating only the `is_default_site` record left `localhost:80` still pointing at the Welcome page. Fix: update `root_page` on every existing site record.
codex_a added 1 commit 2026-02-28 20:40:32 +00:00
fix: update ALL site records in seed, not just is_default_site
All checks were successful
CI / nightly-e2e (pull_request) Has been skipped
CI / pr-e2e (pull_request) Successful in 1m4s
CI / ci (pull_request) Successful in 1m22s
08e003e165
Wagtail's initial migration creates a localhost:80 site. Wagtail matches
incoming requests by hostname before ever checking is_default_site, so
updating only the is_default_site record left localhost:80 still pointing
at the Welcome page. Fix by updating root_page on every site.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
mark merged commit 311ad80320 into main 2026-02-28 20:42:25 +00:00
mark deleted branch fix/seed-default-site 2026-02-28 20:42:25 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nohype/main-site#9