Module: URL

Some URL utilities.
Source:

Methods

(static) decode(url) → {string}

Decode URL. This function behaves exactly as PHP's urldecode.
Parameters:
Name Type Description
url string The URL.
Source:
Returns:
Type
string

(static) encode(url) → {string}

Encodes URL. This function behaves exactly as PHP's urlencode.
Parameters:
Name Type Description
url string The URL.
Source:
Returns:
Type
string

(static) getQueryParam(name)

Get the decoded value of a GET param.
Parameters:
Name Type Description
name string The param name.
Source:

(static) gup(name)

Get the raw value of a GET param.
Parameters:
Name Type Description
name string The param name.
Source:
Redirect browser to a given URL.
Parameters:
Name Type Description
url string The URL.
Source:

(static) reload()

Reload current page.
Source: