DeleteVariableFromUrl (open)

Rewrite an URL to remove a variable

Syntax

LOADLIB "wh::internet/urls.whlib";

STRING FUNCTION DeleteVariableFromUrl(STRING url, STRING varname)

Parameters

STRING url

URL to modify

STRING varname

Name of the variable to remove

Return value

STRING

The rewritten URL

Description

This function removes the requested variable from a URL and takes care of proper adding of variable separators. If the variable with the specified name occurs more than once inside the URL, all occurences will be removed.