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 string

A URL (with or without a query string).

Return value

string

The given URL without its query string.