Click or drag to resize
URLHelperGetAbsoluteUrl Method (String, String, String, String)
Returns the absolute URL for the given relative URL based on the given paths.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax
C#
public static string GetAbsoluteUrl(
	string relativeUrl,
	string domainUrl,
	string applicationUrl,
	string currentPath
)

Parameters

relativeUrl
Type: SystemString
Relative URL to translate to absolute
domainUrl
Type: SystemString
Domain (server) URL, for /xxx URLs
applicationUrl
Type: SystemString
Application URL (including server), for ~/ URLs
currentPath
Type: SystemString
Current execution path, for directory relative URLs

Return Value

Type: String
See Also