Skip to content

Commit 0d61890

Browse files
authored
First content item at root should not have special meaning when routing (#18016)
1 parent cd5470f commit 0d61890

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Umbraco.Core/Services/DocumentUrlService.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -736,8 +736,6 @@ private IEnumerable<Guid> GetKeysInRoot(bool considerFirstLevelAsRoot, bool isDr
736736

737737
if (considerFirstLevelAsRoot)
738738
{
739-
yield return rootKeys.First();
740-
741739
foreach (Guid rootKey in rootKeys)
742740
{
743741
if (isDraft is false && IsContentPublished(rootKey, culture) is false)

0 commit comments

Comments
 (0)