Click or drag to resize
URLHelperResolveUrl Method
Resolves an application relative URL to the absolute form.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax
C#
public static string ResolveUrl(
	string url,
	bool usePage = true,
	bool ensurePrefix = false
)

Parameters

url
Type: SystemString
Virtual application root relative URL
usePage (Optional)
Type: SystemBoolean
If true, the page object can be used to resolve URLs
ensurePrefix (Optional)
Type: SystemBoolean
If true, the current URL prefix is ensured for the URL

Return Value

Type: String
Absolute URL
See Also