Edit this page

up.Params up.Params.stripURL(url)
Class method

This feature is experimental. It may be changed or removed in a future version.

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.