Closed daun closed 4 days ago
This is the same root cause as #10938. To keep things tidy, I'm going to close this in favour of that one.
@duncanmcclean Alright. I'd have preferred to close the other one, which is not that big a deal since an event listener can solve it in production. This one here will permanently break references in entries and practically prevents cp users from editing existing terms.
Bug description
When changing a term's slug, it should in theory update any references to that term across all entries. That's what the
UpdateTermReferences
subscriber looks to be doing, but it never happens.The reason seems to be that
$term->getOriginal('slug')
always returnsnull
and no listener can relate old to new slug on a term to do the updating. Unfortunately, this also makes it impossible to fix in user land.This issue is related to #10938 but not quite the same issue, as the other one can be solved with a custom event listener and this one can't, at least not without touching vendor files.
How to reproduce
tags
terms
field limited totags
topages
entry blueprintC
to entryC
D
and slug tod
content/collections/pages/*.yaml
tags
field wasn't updated and is still pointing toc
instead ofd
Logs
No response
Environment