Skip to content

[6.x] Fix new entries in structured collections having no URL until the next request - #15776

Merged
duncanmcclean merged 1 commit into
statamic:6.xfrom
mynetx:fix/structured-entry-url-after-create
Nov 3, 2026
Merged

duncanmcclean merged 1 commit into
statamic:6.xfrom
mynetx:fix/structured-entry-url-after-create

Conversation

@mynetx

@mynetx mynetx commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

In a structured collection, entries created after the tree has been read in the same request have a null URL until the next request. Duplicating entries in the CP runs into this too, so anything listening to EntrySaved (search indexing, static cache invalidation, addons) sees no URL for the duplicates.

New entries only get added to the tree when it's read, and the tree is cached for the request. #15238 already flushes that cache when an entry is created, but only for orderable collections. This flushes it for any structured collection.

Fixes #5046

🤖 Generated with Claude Code

…lection

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@duncanmcclean
duncanmcclean merged commit 8ed8b9e into statamic:6.x Nov 3, 2026
62 checks passed
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.

Subsequent structured Entry URLs are null due to blink

2 participants