DocumentURLProviderGetAbsoluteUrl Method (String, SiteInfoIdentifier, String) |
Gets absolute URL for the given relative path in context of given site and culture.
Namespace: CMS.DocumentEngineAssembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 13.0.131
Syntax 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:
StringRemarks
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