Umbraco 8 : How to get Absolute URL from Content | Harikrishna Parmar

Umbraco 8 : How to get Absolute URL from Content

There are big changes in Umbraco v8. In the website, we are using absolute URLs to set pages and links. In Umbraco 7 and Umbraco 8, there is different ways to get an absolute URL.

Umbraco 8 : How to get Absolute URL from Content

There are big changes in Umbraco v8. In the website, we are using absolute URLs to set pages and links. In Umbraco 7 and Umbraco 8, there is different ways to get an absolute URL.

In Umbraco 7 :

we simply use UrlAbsolute() with IpublishedContent.

In Umbraco 8 :

There is little difference compared to v7. There is a parameterized method used to get the Absolute URL.

content.Url(string culture = null, UrlMode mode = UrlMode.Auto)
content.Url(string culture = null, UrlMode mode = UrlMode.Absolute)

using this type parameter, we can get a relative or absolute URL depending on what is the best, but you can also forcefully generate an Absolute URL using Mode UrlMode.Absolute.

If this helps you or have any queries please comment here and I would like to help you. You can also contact me by email at [email protected]

Please suggestions and your query, So I can improve it and try to resolve your query.

test

Umbraco 16: What's New and Why It Matters for Your Website

07 August 2025

Umbraco 16, released on June 12, 2025, is the latest major version of the open-source .NET content management system (CMS) known for its flexibility and user-friendly interface. Building on the modernized backoffice introduced in Umbraco 14 and refined in Umbraco 15, this short-term support (STS) release brings incremental yet impactful improvements for content editors, developers, and marketers. In this blog, we’ll explore the key features of Umbraco 16, how they enhance your website-building experience, and why upgrading is worth considering for your personal site.

Umbraco 14: Glimpse of the Latest Umbraco

18 September 2024

Umbraco 14 is a significant release that introduces several new features and changes aimed at improving the overall user experience, developer productivity, and extensibility of the CMS. Here are some of the key features and changes:

Scroll to top
px
px
px
px
px
px
px
Text
rem
rem
rem
Headings
rem
rem
rem
rem
rem
rem
rem
rem
px