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; }