1. updateURLParameter(key, value)
updateURLParameter(key, value)
Description:Updates the value of an existing URL parameter or adds a new parameter if it doesn’t exist. The page does not reload.
Parameters:
key (String) – The name of the URL parameter to update.
key
value (String) – The new value to set for the parameter.
value
2. removeURLParameter(key)
removeURLParameter(key)
Description:Removes a specific URL parameter from the current URL without reloading the page.
key (String) – The name of the URL parameter to remove.
3. hideURLParameters()
hideURLParameters()
Description:Removes all query parameters from the current URL, keeping only the base path. Useful for cleaning up URLs after sensitive parameters have been processed.
4. maskURLParameter(key)
maskURLParameter(key)
Description:Masks or obfuscates a specific URL parameter to hide sensitive information. Only replaces the value in the URL; the original value can be stored elsewhere if needed.
key (String) – The name of the URL parameter to mask.
maskedvalue(String) - Masked value