diff --git a/src/OrchardCore.Modules/OrchardCore.ContentFields/Indexing/SQL/LinkFieldIndexProvider.cs b/src/OrchardCore.Modules/OrchardCore.ContentFields/Indexing/SQL/LinkFieldIndexProvider.cs index 9c40ac3daa4..0410d57feb7 100644 --- a/src/OrchardCore.Modules/OrchardCore.ContentFields/Indexing/SQL/LinkFieldIndexProvider.cs +++ b/src/OrchardCore.Modules/OrchardCore.ContentFields/Indexing/SQL/LinkFieldIndexProvider.cs @@ -52,11 +52,6 @@ public override void Describe(DescribeContext context) return null; } - if (!contentItem.Latest && !contentItem.Published) - { - return null; - } - // Lazy initialization because of ISession cyclic dependency _contentDefinitionManager ??= _serviceProvider.GetRequiredService();