Skip to content

Commit

Permalink
Update SitecoreVersionAbstractions.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaya21-git authored Aug 30, 2024
1 parent cd995b0 commit 3b62812
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Glass.Mapper.Sc/SitecoreVersionAbstractions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static string GetItemUrl(Item item, UrlOptions urlOptions)
{
#if SC104
if (item?.Paths == null) return string.Empty;
if (!item.Paths.IsFullyQualified && item.Parent == null) return string.Empty;
if (!item?.Paths.IsFullyQualified && item?.Parent == null) return string.Empty;
var paths = item.Paths.GetPathParts(urlOptions?.UseDisplayName == true ? ItemPathType.DisplayName : ItemPathType.Name);
if (paths == null || paths.Length == 0)
{
Expand Down

0 comments on commit 3b62812

Please sign in to comment.