Home > widget-integration > FilterHelper > removeQueryParamsHistory

FilterHelper.removeQueryParamsHistory() method

Removes specific values from multiple query parameters in the URL Handles both shortened and full parameter names with multiple URL schemes

Signature:

removeQueryParamsHistory(params: Array<{
		key: string;
		value: string;
	}>, options?: {
		isShortenUrlParam?: boolean;
		urlScheme?: number;
		preventPushHistory?: boolean;
	}): void;

Parameters

Parameter

Type

Description

params

Array<{ key: string; value: string; }>

Array of {key, value} pairs to remove

options

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

(Optional) Options for history and URL handling

Returns:

void