Create explicit overloads for UrlAbsolute

This commit is contained in:
Kenn Jacobsen
2019-03-21 12:27:11 +01:00
committed by Sebastiaan Janssen
parent 4107f47588
commit a48d97e631

View File

@@ -41,9 +41,16 @@ namespace Umbraco.Web
/// Gets the absolute url for the content.
/// </summary>
/// <param name="content">The content.</param>
/// <param name="culture">The culture to get the url for (defaults to current culture)</param>
/// <returns>The absolute url for the content.</returns>
public static string UrlAbsolute(this IPublishedContent content, string culture = null)
public static string UrlAbsolute(this IPublishedContent content) => content.UrlAbsolute(null);
/// <summary>
/// Gets the absolute url for the content.
/// </summary>
/// <param name="content">The content.</param>
/// <param name="culture">The culture to get the url for</param>
/// <returns>The absolute url for the content.</returns>
public static string UrlAbsolute(this IPublishedContent content, string culture)
{
// adapted from PublishedContentBase.Url
switch (content.ItemType)