modURL()
Modify a URL.
This function is valid in v2.19.0 to v2.24.3. This function has been downloaded 54 times.location.href
undefined
or null
is specified this will default to the page's location.opt_url
. Each property name should correspond to a valid URL
property name. If a function is given as a property name it will be executed and the return value will be used as that property of the URL. Specifying a function for the "search"
property will cause the function to be called with an object representing the current search parameters and the return result will be used to indicate what the new search parameters will be. Specifying an object for the "search"
property will provide the ability to set individual search parameters with values or callback functions. If options.search
is an object and has any properties set to undefined
or null
this will indicate that those properties should be removed, but any search parameters that are not defined as properties of options.search
will remain.opt_url
.This function directly requires the following functions which are included automatically:
escape()
has()
nativeType()
parseQS()