Added some code comments and did a check for redirects (returns null if this is the case)

This commit is contained in:
Shannon Deminick
2012-10-30 06:49:36 +06:00
parent 36eea348ba
commit c3795d7e5a
4 changed files with 22 additions and 3 deletions

View File

@@ -104,7 +104,8 @@ namespace Umbraco.Web
// instanciate a request a process
// important to use CleanedUmbracoUrl - lowercase path-only version of the current url
var docreq = new PublishedContentRequest(umbracoContext.CleanedUmbracoUrl, umbracoContext.RoutingContext);
docreq.ProcessRequest(httpContext, umbracoContext, docreq2 => RewriteToUmbracoHandler(HttpContext.Current, uri.Query, docreq2.RenderingEngine));
docreq.ProcessRequest(httpContext, umbracoContext,
docreq2 => RewriteToUmbracoHandler(HttpContext.Current, uri.Query, docreq2.RenderingEngine));
}
/// <summary>