WebUtils.ResolveUrl
Resolves of a virtual Url to a fully qualified Url. This version requires that you provide a basePath, and if returning an absolute Url a host name.
- ~/ ~ as base path
- / as base path
- https:// http:// return as is
- Any relative path: returned as is
- Empty or null: returned as is
public static string ResolveUrl(string url, string basepath, string currentPathForRelativeLinks, bool returnAbsoluteUrl, bool ignoreRootPaths, string absoluteHostName, string absoluteScheme)
Remarks
Requires that you have access to an active Request
© West Wind Technologies, 2025 • Updated: 2025-03-08
Comment or report problem with topic