Umbraco 8 : get absolute URL from IPubloshedContent.
Note that as of version 8.1 .UrlAbsolute() has been removed and I found one can now use .Url(mode: UrlMode.Absolute).
Url: content.Url, .GetUrl(...), .Url(), .UrlAbsolute() are all gone,
The proper way to get the Url is content.Url(string culture = null, UrlMode mode = UrlMode.Auto) which produces a relative-or-absolute Url depending on what's "best", but can be forced to produce absolute Urls with UrlMode.Absolute.
Let's us know if you have any issue. We are here to help you. reach us at contact@madnattechnologies.com
comments powered by Disqus
Umbraco, the most powerful and flexible CMS I have ever used.
Marc Love, Web Developer