Edit this page

up.Params 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

var 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).

string

Return value

The given URL without its query string.

string