From 2fe1b1f42d551c17ce54a03a8fed6a8169564443 Mon Sep 17 00:00:00 2001 From: kipusoep Date: Thu, 9 Jul 2015 12:00:40 +0200 Subject: [PATCH] Fixed previous bugfix ;-) --- Modules/UrlTrackerModule.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/UrlTrackerModule.cs b/Modules/UrlTrackerModule.cs index 1085647..fcce99e 100644 --- a/Modules/UrlTrackerModule.cs +++ b/Modules/UrlTrackerModule.cs @@ -488,7 +488,7 @@ static void LoadUrlTrackerMatchesFromCache(HttpRequest request, string urlWithou if (forcedRedirects == null || !forcedRedirects.Any()) return; - foreach (UrlTrackerModel forcedRedirect in forcedRedirects.Where(x => !x.Is404 && (x.RedirectRootNodeId == rootNodeId || x.RedirectRootNodeId == -1) && (x.OldUrl.Equals(urlWithoutQueryString, StringComparison.CurrentCultureIgnoreCase) || x.OldUrl.Equals(shortestUrl, StringComparison.CurrentCultureIgnoreCase))).OrderBy(x => x.RedirectHttpCode == 410 ? 2 : 1).ThenByDescending(x => x.OldUrlQueryString)) + foreach (UrlTrackerModel forcedRedirect in forcedRedirects.Where(x => !x.Is404 && (x.RedirectRootNodeId == rootNodeId || x.RedirectRootNodeId == -1) && (string.Equals(x.OldUrl, urlWithoutQueryString, StringComparison.CurrentCultureIgnoreCase) || string.Equals(x.OldUrl, shortestUrl, StringComparison.CurrentCultureIgnoreCase))).OrderBy(x => x.RedirectHttpCode == 410 ? 2 : 1).ThenByDescending(x => x.OldUrlQueryString)) { LoggingHelper.LogInformation("UrlTracker HttpModule | URL match found"); if (forcedRedirect.RedirectNodeId.HasValue && forcedRedirect.RedirectHttpCode != (int)HttpStatusCode.Gone)