From 9c8b5cd97e0df2cc82917035d6b2d7282a7a17fb Mon Sep 17 00:00:00 2001 From: Stephan Date: Tue, 19 Feb 2013 17:49:49 -0100 Subject: [PATCH] U4-1441 - fix, fix and fix! --- src/Umbraco.Web/Routing/LookupByNotFoundHandlers.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web/Routing/LookupByNotFoundHandlers.cs b/src/Umbraco.Web/Routing/LookupByNotFoundHandlers.cs index 452205ba8b..72fec51add 100644 --- a/src/Umbraco.Web/Routing/LookupByNotFoundHandlers.cs +++ b/src/Umbraco.Web/Routing/LookupByNotFoundHandlers.cs @@ -68,8 +68,13 @@ namespace Umbraco.Web.Routing LogHelper.Debug("Lookup '{0}' found node with id={1}.", () => lookup.GetType().FullName, () => docRequest.PublishedContent.Id); if (docRequest.Is404) LogHelper.Debug("Lookup '{0}' set status to 404.", () => lookup.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 } }