Login to follow
URLHelper

URLHelper (ODC)

Stable version 0.1.1 (Compatible with ODC)
Uploaded on 2 Oct (13 days ago) by EONE TECHNOLOGIES PRIVATE LIMITED
URLHelper

URLHelper (ODC)

Documentation
0.1.1

1. 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.

  • value (String) – The new value to set for the parameter.


2. removeURLParameter(key)

Description:
Removes a specific URL parameter from the current URL without reloading the page.

Parameters:

  • key (String) – The name of the URL parameter to remove.


3. 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)

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.

Parameters:

  • key (String) – The name of the URL parameter to mask.

  • maskedvalue(String) - Masked value