The url() function is a shorthand method of instantiating a new Url Object. It also allows you to use Url Objects within Output tags e.g.

    {{ url('/').absolute }} // https://www.evance.it
    {{ url('~/').toCdn().absolute }} // https://cdn.evance.me/portal/web/gateway/
    {{ url('~/theme') }} // /portal/web/gateway/theme/v4

This in turn means that the Url object can be instantiated for limited use from within an editable region in the CMS.

The arguments accepted for the url() function are the same as those for the Url Object's construct.