From c2193d818fd8454a7595556acf3f2c0af3b89695 Mon Sep 17 00:00:00 2001 From: iamandycohen Date: Thu, 10 Nov 2016 07:20:49 -0600 Subject: [PATCH] updated get redirect folder items method to only return redirect folder items --- Hi.UrlRewrite/Processing/RulesEngine.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Hi.UrlRewrite/Processing/RulesEngine.cs b/Hi.UrlRewrite/Processing/RulesEngine.cs index decb0b5..e57ae2f 100644 --- a/Hi.UrlRewrite/Processing/RulesEngine.cs +++ b/Hi.UrlRewrite/Processing/RulesEngine.cs @@ -145,7 +145,9 @@ public List GetOutboundRules() private IEnumerable GetRedirectFolderItems() { - var redirectFolderItems = db.GetItem(RedirectFolderItem.TemplateId).GetReferrers(); + var redirectFolderItems = db.GetItem(RedirectFolderItem.TemplateId) + .GetReferrers() + .Where(e => e.TemplateID == new ID(RedirectFolderItem.TemplateId)); return redirectFolderItems; }