Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update entry URIs when collection route is changed #379

Closed

Conversation

duncanmcclean
Copy link
Member

This pull request fixes an issue when changing a collection's route, where it wouldn't trigger the uri column on the entries table to be updated.

Closes #378.

@ryanmitchell
Copy link
Contributor

This looks good but will only work if you have both collection and entries eloquent driven.

If you have collections file driven, then this wouldn't update the eloquent entries with the new route (which I'd guess is the more common config).

Maybe we are ok with that, but thought I'd mention it for discussion.

@duncanmcclean
Copy link
Member Author

Oh, good point!

Ideally, it'd work if your collections were stored as flat files too. I'll have a think about the best way to approach it 🤔

@duncanmcclean
Copy link
Member Author

Closing in favour of statamic/cms#11150.

@duncanmcclean duncanmcclean deleted the update-entry-uris-when-collection-route-is-changed branch November 20, 2024 18:01
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