From 52c33055af1ab9410ad1ae63568cbcd9f477b4a2 Mon Sep 17 00:00:00 2001 From: Stephan Date: Mon, 15 Jun 2015 14:58:34 +0200 Subject: [PATCH] U4-6702 - handle wildcard domains also for virtual node handler --- .../Routing/PublishedContentRequestEngine.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Umbraco.Web/Routing/PublishedContentRequestEngine.cs b/src/Umbraco.Web/Routing/PublishedContentRequestEngine.cs index 7b0267f227..b8b454e197 100644 --- a/src/Umbraco.Web/Routing/PublishedContentRequestEngine.cs +++ b/src/Umbraco.Web/Routing/PublishedContentRequestEngine.cs @@ -104,11 +104,14 @@ namespace Umbraco.Web.Routing { // find the document & template FindPublishedContentAndTemplate(); - - // set the culture on the thread -- again, 'cos it might have changed due to a wildcard domain - Thread.CurrentThread.CurrentUICulture = Thread.CurrentThread.CurrentCulture = _pcr.Culture; } + // handle wildcard domains + HandleWildcardDomains(); + + // set the culture on the thread -- again, 'cos it might have changed due to a finder or wildcard domain + Thread.CurrentThread.CurrentUICulture = Thread.CurrentThread.CurrentCulture = _pcr.Culture; + // trigger the Prepared event - at that point it is still possible to change about anything // even though the request might be flagged for redirection - we'll redirect _after_ the event // @@ -380,9 +383,6 @@ namespace Umbraco.Web.Routing // handle umbracoRedirect FollowExternalRedirect(); - - // handle wildcard domains - HandleWildcardDomains(); } ///