
less than 1 minute to read
Resolves a virtual path that includes ~ at the beginning to a fully qualified HTTP url.
Use this method to get a fully qualified Web URL when you need to create links for externally sent links like emails or social media embedded links where relative links will not work properly.
Example
In a Web application where the virtual web root is timetrakker
, the following URL:
foxpro
Process.ResolveServerUrl("~/admin/ProcessInvoices.ttw","https")
resolves to:
texthttps://west-wind.com/timetrakker/admin/ProcessInvoices.ttw
o.ResolveServerUrl(lcVirtualUrl, lcPrefix)
Parameters
lcVirtualUrl
The URL to translate. If the URL contains ~ it's translated to a server relative fully qualified url. If not the URL is returned as is.
Example: ~/admin/ProcessInvoices.ttw
lcPrefix
The URL prefix to use for this request
- http (default)
- https
See also:
Class wwProcess | wwProcess::ResolveUrl | wwProcess::ResolvePath© West Wind Technologies, 1996-2024 • Updated: 03/21/16
Comment or report problem with topic