From a36824e7968b793e365ace58b5f857f89c070f8a Mon Sep 17 00:00:00 2001 From: Stephan Date: Tue, 19 Feb 2013 17:43:13 -0100 Subject: [PATCH] U4-1441 - fix, fix and fix! --- .../Routing/ContentFinderByNotFoundHandlers.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web/Routing/ContentFinderByNotFoundHandlers.cs b/src/Umbraco.Web/Routing/ContentFinderByNotFoundHandlers.cs index 3703ba007a..c88f72acd6 100644 --- a/src/Umbraco.Web/Routing/ContentFinderByNotFoundHandlers.cs +++ b/src/Umbraco.Web/Routing/ContentFinderByNotFoundHandlers.cs @@ -68,8 +68,13 @@ namespace Umbraco.Web.Routing LogHelper.Debug("Finder '{0}' found node with id={1}.", () => finder.GetType().FullName, () => docRequest.PublishedContent.Id); if (docRequest.Is404) LogHelper.Debug("Finder '{0}' set status to 404.", () => finder.GetType().FullName); + + // if we found a document, break, don't look at more handler -- we're done + break; } - break; + + // if we did not find a document, continue, look at other handlers + continue; } // else it's a legacy handler, run @@ -108,8 +113,11 @@ namespace Umbraco.Web.Routing // string.Format("Added to cache '{0}', {1}.", url, handler.redirectID)); //} + // if we found a document, break, don't look at more handler -- we're done break; } + + // if we did not find a document, continue, look at other handlers } }