__construct()
__construct()
Url replicates Gryphon's original URL filter, providing absolute urls regardless of leading slash.
Please note this behavior is different from the built in
url() function which will not automatically inject
a leading slash.
{{ 'foo/bar'|url({'a': 1}) }} becomes /foo/bar?a=1