Skip to content

[5.x] Update entry URIs when collection route is changed - #11150

Merged
jasonvarga merged 4 commits into
5.xfrom
update-entry-uris-when-collection-route-is-changed
Oct 30, 2025
Merged

[5.x] Update entry URIs when collection route is changed#11150
jasonvarga merged 4 commits into
5.xfrom
update-entry-uris-when-collection-route-is-changed

Conversation

@duncanmcclean

Copy link
Copy Markdown
Member

This pull request fixes a papercut in the Eloquent Driver where changes to a collection's route wouldn't refresh entry URIs in the database.

This PR addresses that by adding dirty state to the Collection class and updates the entry URIs when it detects the route has been changed.

Fixes statamic/eloquent-driver#378.

@duncanmcclean
duncanmcclean marked this pull request as ready for review November 20, 2024 18:38
@jasonvarga
jasonvarga merged commit cd86b8e into 5.x Oct 30, 2025
25 checks passed
@jasonvarga
jasonvarga deleted the update-entry-uris-when-collection-route-is-changed branch October 30, 2025 12:41
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.

Update entry URI's when collection route is changed

2 participants