protected virtual void PreparePublishedContentRequest(PublishedContentRequest publishedContentRequest) { //NOTE: In Umbraco 7.2, when this is fixed: http://issues.umbraco.org/issue/U4-5628, we don't need to do this at all because the // call to OnActionExecuted does the whole Prepare() operation for us. if (UmbracoVersion.Current < Version.Parse("7.2.0")) { //We're going to use some reflection to get at the PublishedContentRequestEngine.FindDomain() method which will lookup // the domain based on the assigned PublishedContent on the PCR, which will take into account the parent/ancestor ids // to find the domain. var engine = publishedContentRequest.GetPropertyValue("Engine"); engine.CallMethod("FindDomain"); } }