The baseUrl keyword returns a base URL that can be used to prefix links to local web resources. The value is assembled from the protocol, hostname and port of the server instance Structr is running on.

In case of http, if the port is 80, or https and port 443, the port part is omitted.

New in 3.0: You can override the value by the configuration parameter


Usage: ${baseUrl}

Example output:


Related Articles
About this article
Last change 2018-09-12
Topics FunctionsServerStructr 3.0