We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 92faae0 + 3b62812 commit f819e48Copy full SHA for f819e48
Source/Glass.Mapper.Sc/SitecoreVersionAbstractions.cs
@@ -36,6 +36,7 @@ public static string GetItemUrl(Item item, UrlOptions urlOptions)
36
{
37
#if SC104
38
if (item?.Paths == null) return string.Empty;
39
+ if (!item?.Paths.IsFullyQualified && item?.Parent == null) return string.Empty;
40
var paths = item.Paths.GetPathParts(urlOptions?.UseDisplayName == true ? ItemPathType.DisplayName : ItemPathType.Name);
41
if (paths == null || paths.Length == 0)
42
0 commit comments