ui.url.set

Sets the value of the page's URL fragment. The fragment encodes a dictionary of keys and values. If a dictionary is supplied as the first argument, the key/value pairs in that dictionary will be encoded and replace the current URL fragment. If a key string is provided, then only that key (and its value, the second argument) are updated, and the rest of the URL fragment is unchanged.

UsageReturns
ui.url.set(keyOrDict, value)
ArgumentTypeDetails
keyOrDictDictionaryEither a key to update a single value in the URL fragment, or a dictionary of key/value pairs which will replace the existing URL fragment. Dictionary values must be of type string, number, or boolean.
valueBoolean|Number|String, optionalThe new value to associate with a single key. This is required when the first argument is a string and is otherwise ignored.