URLHelperResolveUrl Method |
Resolves an application relative URL to the absolute form.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax public static string ResolveUrl(
string url,
bool ensurePrefix = false
)
Parameters
- url
- Type: SystemString
Virtual application root relative URL - ensurePrefix (Optional)
- Type: SystemBoolean
If true, the current URL prefix is ensured for the URL
Return Value
Type:
StringAbsolute URL
Exceptions Exception | Condition |
---|
ArgumentException | Throws when url uses a leading .. to exit above the top directory. |
See Also