Is the site identifier actually finding a valid running site in your instance?
Not that it's much different but worth a try.
var oPage = DocumentHelper.GetDocuments()
.Path("/My-Dashboard/Events/Last-One", PathTypeEnum.Single)
.OnCurrentSite()
.Culture("en-au")
.FirstOrDefault();
var pPage = DocumentHelper.GetDocuments()
.Path("/My-Dashboard/Events", PathTypeEnum.Single)
.OnSite("SiteCodeName")
.Culture("en-au")
.FirstOrDefault();
if (oPage != null && pPage != null)
{
oPage.InsertAsLink(pPage);
}
Sometimes I've found .SelectNodes()
doesn't work as I want