up.Params.stripURL(url)

Class method

This feature is experimental. Please share your experiences so we know what to keep or change.

Returns the given URL without its query string.

Example

let url = up.Params.stripURL('http://foo.com?key=value')
// url is now: 'http://foo.com/'

Parameters

url
required

A URL (with or without a query string).

Type: string

Return value

The given URL without its query string.

Type: string