diff --git a/Sdl.Web.DXAResolver/Resolver.cs b/Sdl.Web.DXAResolver/Resolver.cs index df283cf..f9a33b7 100644 --- a/Sdl.Web.DXAResolver/Resolver.cs +++ b/Sdl.Web.DXAResolver/Resolver.cs @@ -96,11 +96,17 @@ private List GatherLinkedComponents(Component component) } } + HashSet linkedComponents = new HashSet(); foreach (var linkField in componentLinkFields) { if (linkField.Values != null) { - components.AddRange(linkField.Values); + foreach (var c in linkField.Values) + { + if (linkedComponents.Contains(c.Id)) continue; + linkedComponents.Add(c.Id); + components.Add(c); + } } } return components;