:sig
String request_base_url(Request& context)

:see
>uri
request_script_url
request_query_route

:content
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");
