Renaming Sitecore items does not update children clickable URIs

In this article

Symptoms

When you rename a Sitecore item and then use the Publishing Service to publish the changes, the clickable URIs of the child items don’t get updated in the Coveo indexes.

Cause

The Publishing Service works like a Sitecore Smart Publish, meaning that only items whose revision number has changed get published. When you rename a Sitecore item, only that item’s revision number changes, not the revision numbers of its child items. As a result, the child items don’t get published, and their clickable URIs in the Coveo indexes continue to reflect the old parent item name.

Resolution

There isn’t a direct solution to this issue.

Workaround

Implement a rule that, upon renaming a Sitecore item, automatically updates the Revision field of all its children (thus marking them as changed for the Publishing Service). For example, you could create a custom class that handles the item:renamed event.