Skip to content

Commit f819e48

Browse files
authored
Merge pull request #469 from Jaya21-git/master
Fixed issue for orphan items for sitecore 10.4
2 parents 92faae0 + 3b62812 commit f819e48

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Source/Glass.Mapper.Sc/SitecoreVersionAbstractions.cs

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public static string GetItemUrl(Item item, UrlOptions urlOptions)
3636
{
3737
#if SC104
3838
if (item?.Paths == null) return string.Empty;
39+
if (!item?.Paths.IsFullyQualified && item?.Parent == null) return string.Empty;
3940
var paths = item.Paths.GetPathParts(urlOptions?.UseDisplayName == true ? ItemPathType.DisplayName : ItemPathType.Name);
4041
if (paths == null || paths.Length == 0)
4142
{

0 commit comments

Comments
 (0)