Home > widget-integration > FilterHelper > removeQueryParamHistory

FilterHelper.removeQueryParamHistory() method

Removes a specific value from a query parameter in the URL This is different from deleteQueryParamHistory which removes the entire parameter

Signature:

removeQueryParamHistory(key: string, value: string, options?: {
		isShortenUrlParam?: boolean;
		urlScheme?: number;
		preventPushHistory?: boolean;
	}): void;

Parameters

Parameter

Type

Description

key

string

The query parameter key to modify (long form)

value

string

The specific value to remove

options

{ isShortenUrlParam?: boolean; urlScheme?: number; preventPushHistory?: boolean; }

(Optional) Options for history and URL handling

Returns:

void