Skip to content

Commit

Permalink
updated get redirect folder items method to only return redirect fold…
Browse files Browse the repository at this point in the history
…er items
  • Loading branch information
iamandycohen committed Nov 10, 2016
1 parent c86036a commit c2193d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Hi.UrlRewrite/Processing/RulesEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ public List<OutboundRule> GetOutboundRules()

private IEnumerable<Item> 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;
}
Expand Down

0 comments on commit c2193d8

Please sign in to comment.