Click or drag to resize
DocumentURLProviderGetAbsoluteUrl Method (String, SiteInfoIdentifier, String)
Gets absolute URL for the given relative path in context of given site and culture.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 13.0.131
Syntax
C#
public static string GetAbsoluteUrl(
	string virtualPath,
	SiteInfoIdentifier siteIdentifier,
	string cultureCode = null
)

Parameters

virtualPath
Type: SystemString
Virtual path (starting with '~/') to convert to absolute URL.
siteIdentifier
Type: CMS.DataEngineSiteInfoIdentifier
Site identifier.
cultureCode (Optional)
Type: SystemString
Culture for which the presentation URL should be returned.

Return Value

Type: String
Remarks
When the content culture is specified by domain based on site settings the culture is used to get respective presentation URL from site domain alias. If the cultureCode is not provided site presentation URL is always used.
See Also