ResolveToAbsoluteURL (open)
Rewrite an URL to make it absolute
Syntax
LOADLIB "wh::internet/urls.whlib";
STRING FUNCTION ResolveToAbsoluteURL(STRING baseurl, STRING newurl)Parameters
STRING baseurlAbsolute base URL, to which the new url might be relative. We also accept URLs starting with "//"
STRING newurlNew URL which must be merged into the base URL
Return value
STRINGThe 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