Hi. I'd like to delete the node I'm currently visiting, and then redirect to another node. It fails before the redirection happens because the node does not exists anymore ;) How can I do this better?
int parent = WAFContext.Session.GetContent<HierarchicalContent>(WAFContext.Request.NodeId).Parent.GetId();
WAFRuntime.SystemSession.DeleteNode(WAFContext.Request.NodeId, true);
WAFContext.RedirectTo(parent);