LOG IN SIGN UP
Documentation

querystring.set()

Returns the given URL with the given parameter name set to the given value, replacing the original value and removing any duplicates. If the parameter is not present in the query string, the parameter will be appended with the given value to the end of the query string. The parameter name and value will be URL-encoded when set in the query string.

Format

STRING
querystring.set(STRING, STRING, STRING)

Examples

1
set req.url = querystring.set(req.url, "foo", "baz");