Shazwazza / Articulate

A wonderful Blog engine built on Umbraco
MIT License
211 stars 106 forks source link

ArticulateRootNodeCache InvalidOperationException: Sequence contains no matching element #440

Closed nvisage-gf closed 7 months ago

nvisage-gf commented 8 months ago

When Articulate is not a root node the matching logic in GetContentId cannot find anything in cache for current request as ArticulateRouter is passing empty list of domains when populating cache (no matches).

dynamicRouteValues.Add(articulateRootNode.Id, domains.Where(x => x.ContentId == articulateRootNode.Id).ToList());

image