Signature
String request_base_url(Request& context)
Returns the canonical directory base URL for the current script. This is useful for front-controller apps that generate links to sibling assets or query-routed pages.
Example
print(request_base_url(context) != "" ? "base url\n" : "empty\n");
Output
base url