You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the Eloquent driver for entries and it seems to be an issue when using the Eloquent driver as the file based driver works as expected.
When I update the slug for an entry, the change saves but checking the new URL results in a 404 page (old URL is still valid). If I save the page again, the new URL work.
It looks like the first save updates the slug field in the table. The second save then updates the uri field in the table.
How to reproduce
Use the Eloquent driver for entries.
Update a slug of an entry and visit the new page. This will be a 404 page. You can also check the DB table and see the slug has been updated , but the uri has not.
Save the entry again and visit the new page. This will now work as expected. You can also check the DB table and see the uri has now been updated.
It works as expected when using eloquent driven collections, but not when using file/stache driven collections. I've got a PR here for the changes required - ended up being a 1 method change.
Do you want to give it a check and see if it works for you? #391
Bug description
I'm using the Eloquent driver for entries and it seems to be an issue when using the Eloquent driver as the file based driver works as expected.
When I update the slug for an entry, the change saves but checking the new URL results in a 404 page (old URL is still valid). If I save the page again, the new URL work.
It looks like the first save updates the
slug
field in the table. The second save then updates theuri
field in the table.How to reproduce
slug
has been updated , but theuri
has not.uri
has now been updated.Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Additional details
No response
The text was updated successfully, but these errors were encountered: