diff --git a/src/Umbraco.Web/PublishedContentExtensions.cs b/src/Umbraco.Web/PublishedContentExtensions.cs index b10381bb94..dea4f17eef 100644 --- a/src/Umbraco.Web/PublishedContentExtensions.cs +++ b/src/Umbraco.Web/PublishedContentExtensions.cs @@ -41,9 +41,16 @@ namespace Umbraco.Web /// Gets the absolute url for the content. /// /// The content. - /// The culture to get the url for (defaults to current culture) /// The absolute url for the content. - public static string UrlAbsolute(this IPublishedContent content, string culture = null) + public static string UrlAbsolute(this IPublishedContent content) => content.UrlAbsolute(null); + + /// + /// Gets the absolute url for the content. + /// + /// The content. + /// The culture to get the url for + /// The absolute url for the content. + public static string UrlAbsolute(this IPublishedContent content, string culture) { // adapted from PublishedContentBase.Url switch (content.ItemType)