("{0}Running with template id={1} alias=\"{2}\"", () => tracePrefix, () => request.TemplateModel.Id, () => request.TemplateModel.Alias);
+ }
+ }
+
+ ///
+ /// Follows external redirection through umbracoRedirect document property.
+ ///
+ /// As per legacy, if the redirect does not work, we just ignore it.
+ private void FollowExternalRedirect(PublishedContentRequest request)
+ {
+ if (request.HasPublishedContent == false) return;
+
+ var redirectId = request.PublishedContent.Value(Constants.Conventions.Content.Redirect, -1);
+ var redirectUrl = "#";
+ if (redirectId > 0)
+ redirectUrl = request.UmbracoContext.UrlProvider.GetUrl(redirectId);
+ if (redirectUrl != "#")
+ request.SetRedirect(redirectUrl);
+ }
+
+ #endregion
+ }
+}
diff --git a/src/Umbraco.Web/Routing/IContentFinder.cs b/src/Umbraco.Web/Routing/IContentFinder.cs
index c29df43465..5f8e5f0575 100644
--- a/src/Umbraco.Web/Routing/IContentFinder.cs
+++ b/src/Umbraco.Web/Routing/IContentFinder.cs
@@ -8,9 +8,9 @@ namespace Umbraco.Web.Routing
///
/// Tries to find and assign an Umbraco document to a PublishedContentRequest.
///
- /// The PublishedContentRequest.
+ /// The PublishedContentRequest.
/// A value indicating whether an Umbraco document was found and assigned.
/// Optionally, can also assign the template or anything else on the document request, although that is not required.
- bool TryFindContent(PublishedContentRequest contentRequest);
+ bool TryFindContent(PublishedContentRequest frequest);
}
}
\ No newline at end of file
diff --git a/src/Umbraco.Web/Routing/LegacyRequestInitializer.cs b/src/Umbraco.Web/Routing/LegacyRequestInitializer.cs
index f7f455069b..d2a233a943 100644
--- a/src/Umbraco.Web/Routing/LegacyRequestInitializer.cs
+++ b/src/Umbraco.Web/Routing/LegacyRequestInitializer.cs
@@ -30,7 +30,7 @@ namespace Umbraco.Web.Routing
// legacy - virtualUrl used by presentation/template.cs to handle