Source: site.view [edit]
Function name: GetURLFromURLFunction
Arguments: urlFunctionResult
Description: Extracts out the result URL from a WubHub function of type "URL"
Page type: webl
Render function:  
Module: siteutil

Page source:

// Call me like this:
//   WubCall("GetURLFromURLFunction", [WubCall("someURLFunction", [args])] )
//     --> The URL

var res = nil;
var Meta = Elem(urlFunctionResult, "meta");
if Size(Meta) == 1 then
   var s = (Meta[0].content ? nil);
   if (s != nil) then
      res = Select(s, 6, Size(s))
   end
end;
res;