Breadcrumbs

Url

Represents the current URL.

Methods

Name

Type

Description

$url.host

String

The host name of the current URL.

$url.path

String

The path part of the current URL, or an empty string if one does not exist

$url.port

int

The port number or -1 if the port is not set.

$url.protocol

String

The protocol of the current URL.

$url.query

String

The query part of the current URL, or null if the URL has no query part.