URLHelperGetAbsoluteUrl Method (String, String, String, String) |
Returns the absolute URL for the given relative URL based on the given paths.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax 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:
StringSee Also