Returns the root URI for the request.
Basic usage:
{{ url.root }}
Usage with parameters:
{{ url.root(Include Host, Add Trailing Slash) }}
Parameters:
Include Host
(optional) – Include Website protocol, host, port, etc.Add Trailing Slash
(optional) – Add common slash to the end of the host name. Example: https://example.com/
Example:
{{ url.root("includehost","notrailingslash") }}
Leave a Reply
You must be logged in to post a comment.