url

Returns an absolute URL. Useful to rebuild an URL from a relative link, or clean-up messy ones.
url($data , source = None , with_fragment = None , query_sorted = None , default_scheme = None ) : String | List
$data.url( source = None , with_fragment = None , query_sorted = None , default_scheme = None ) : String | List
Parameters
$data String | List
source String

Defines the domain tu use to rebuild the url (if not present in $data).

with_fragment Bool

If set to False, it get rids of everything after the #.

query_sorted Bool

If set to True, it sorts the GET params by alphabetical order.

default_scheme String

Defines the scheme tu use to rebuild the url (if not present in $data).

See also
Examples

How to