-
-
Notifications
You must be signed in to change notification settings - Fork 608
Open
Description
Bug description
The route of an entry is typically using the slug, but can be customised pretty heavily (example in screenshot).

When saving the entry, the URL in the stache does not update correctly, as the code only checks for changes in the slug:
Lines 448 to 451 in 2724468
| if ($this->isDirty('slug')) { | |
| optional(Collection::findByMount($this))->updateEntryUris(); | |
| $this->updateChildPageUris(); | |
| } |
Possible solution
Either go through the pain of figuring out which fields in the blueprint are relevant for route creation, or simply check if any field is dirty when custom routing rules are set.
How to reproduce
- Create collection with custom routes
- Change existing entry editing one of the fields that are used in the custom route but not editing the slug
- Check resulting URL of the entry
Logs
Environment
Statamic
Addons: 3
Sites: 4 (🇩🇪 Deutsch, 🇫🇷 Français, 🇮🇹 Italiano, 🇬🇧 English)
Stache Watcher: Disabled
Static Caching: Disabled
Version: 5.69.0 PROInstallation
Fresh statamic/statamic site via CLI
Additional details
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels