Skip to main content

The Url object

Information about URL query and hash parameters currently in use.

Properties

All properties for this object with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read property values.

hashParams

The hash parameters of the URL.

Type object
Formatobject
Configurability Read-only
Defaultnull
Object Properties

key

The key of the hash parameter.

Type string
Configurability Read-only
Defaultnull

value

The value of the hash parameter.

Type string
Configurability Read-only
Defaultnull

Examples
{
"key": "id",
"value": "1234567890"
}

href

The full URL.

Type string
Format URL
Configurability Read-only
Defaultnull
Examples
"https://retool.example.com?id=1234567890"

searchParams

The search parameters of the URL.

Type object
Formatobject
Configurability Read-only
Defaultnull
Object Properties

key

The key of the parameter.

Type string
Configurability Read-only
Defaultnull

value

The value of the parameter.

Type string
Configurability Read-only
Defaultnull