Skip to content

Commit

Permalink
fix (Mapping): map links now correct uses configureContext.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiepollock committed Jan 18, 2024
1 parent 0295e3e commit 395734c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static class UmbracoMapperLinkExtensions
return default;
}

return mapper.MapLink<TLink>(block.Content);
return mapper.MapLink<TLink>(block.Content, configureContext);
}

/// <summary>
Expand All @@ -39,7 +39,7 @@ public static class UmbracoMapperLinkExtensions
/// <returns>A <see cref="ILink"/> if successful.</returns>
public static ILink? MapLink(this IUmbracoMapper mapper, IBlockReference<IPublishedElement, IPublishedElement>? block, Action<MapperContext>? configureContext = default)
{
return mapper.MapLink<ILink>(block);
return mapper.MapLink<ILink>(block, configureContext);
}

/// <summary>
Expand Down

0 comments on commit 395734c

Please sign in to comment.