Table of Contents

Class WebPageUrl

Namespace
CMS.Websites
Assembly
CMS.Websites.dll

Container storing retrieved URLs by IWebPageUrlRetriever.

public sealed class WebPageUrl
Inheritance
object
WebPageUrl
Extension Methods

Constructors

WebPageUrl(string, string)

Initializes a new instance of WebPageUrl.

public WebPageUrl(string relativePath, string absoluteUrl)

Parameters

relativePath string

Relative path.

absoluteUrl string

Absolute URL.

Properties

AbsoluteUrl

Absolute URL of the page.

public string AbsoluteUrl { get; init; }

Property Value

string

Remarks

Built from the canonical domain serving the content language of the page. On a website channel routing its content languages by LanguageDomains that is the first domain configured for the language - the remaining domains of the language are inbound aliases only and never appear on generated links - and the value is empty when no domain is configured for the language.

RelativePath

Relative path (starting with ~/) of the page.

public string RelativePath { get; init; }

Property Value

string

Remarks

The path is host-relative, so it resolves correctly only on the host it was rendered for. On a website channel routing its content languages by LanguageDomains the path carries no language prefix - the host determines the language - so links crossing languages must use AbsoluteUrl instead.