ResolveToAbsoluteURL (open)
Rewrite an URL to make it absolute
Syntax
LOADLIB "wh::internet/urls.whlib";
STRING FUNCTION ResolveToAbsoluteURL(STRING baseurl, STRING newurl)
Parameters
STRING baseurl
Absolute base URL, to which the new url might be relative. We also accept URLs starting with "//"
STRING newurl
New URL which must be merged into the base URL
Return value
STRING
The rewritten absolute URL
Description
This function takes a base url and a relative or absolute URL, and uses these to construct a proper absolute URL