parse_url Modifier

Get information about a URL.

url: 'http://example.com/path?query=1'
{{ url | parse_url }}
{{ url | parse_url:host }}
[
'scheme' => 'http',
'host' => 'example.com',
'path' => '/path',
'query' => 'query=1',
]
example.com
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →