Home > widget-integration > FilterHelper > setQueryParamHistory

FilterHelper.setQueryParamHistory() method

Sets a query parameter in the URL and updates browser history Supports multiple URL schemes and shortened parameter names

Signature:

setQueryParamHistory(key: string, value: string | string[], replace?: boolean, options?: {
		preventPushHistory?: boolean;
		isShortenUrlParam?: boolean;
		urlScheme?: number;
	}): void;

Parameters

Parameter

Type

Description

key

string

The query parameter key to set (long form)

value

string | string[]

The value(s) to set (can be string or array)

replace

boolean

(Optional) If true, use replaceState instead of pushState

options

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

(Optional) Options for history and URL handling

Returns:

void