Differences between logic to update descendant slugs #17804
Closed
jlawrence-yellostudio
started this conversation in
General
Replies: 1 comment 1 reply
-
|
Thanks for pointing that out! It’s fixed now for the next Craft 4 and 5 releases. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @brandonkelly
I thought i'd make this as a discussion rather than an issue as i'm not sure what the exact problem is, i'm currently experiencing a discrepancy where the child URIs are not always updating to match the parent slug, the issue is that it is intermittent.
Looking at the 3 latest versions of elements\Entry.php i can see that each version has different logic:
3.9.15
4.16.12
5.8.16
I can understand 5.x being different but not the 4.x and 3.x versions, particularly considering this fix in 3.x:
#10094
Basically the behaviour i'm seeing is that when using a queue, that it will work for say 5 times in a row, and then suddenly not, resulting in the children having the incorrect URIs.
I'm on 4.16.12 which is the same as 4.16.19 for this file and i've reviewed the change log to see there is anything related to this issue.
Any thoughts you might have would be useful, right now we've told the customer to manually resave the children, although this is quite laborious as you might guess.
Beta Was this translation helpful? Give feedback.
All reactions