private void Document_Update_After(object sender, DocumentEventArgs e) { // Update the document itself, only if there is no workflow try { if (e.Node.WorkflowStep == null) { DynamicRouteEventHelper.DocumentInsertUpdated(e.Node.NodeID); } else { if (e.Node.WorkflowStep.StepIsPublished && DynamicRouteInternalHelper.ErrorOnConflict()) { DynamicRouteEventHelper.DocumentInsertUpdated_CheckOnly(e.Node.NodeID); } } } catch (UrlSlugCollisionException ex) { LogErrorsInSeparateThread(ex, "DynamicRouting", "UrlSlugConflict", $"Occurred on Document Update After for ${e.Node.NodeAlias}."); e.Cancel(); } catch (Exception ex) { LogErrorsInSeparateThread(ex, "DynamicRouting", "Error", $"Occurred on Document Update After for ${e.Node.NodeAlias}."); e.Cancel(); } }