Home > widget-integration > FilterHelper > appendQueryParamHistory
FilterHelper.appendQueryParamHistory() method
Appends a value to a query parameter in the URL Used for multiple selection filters to add new values without replacing existing ones
Signature:
appendQueryParamHistory(key: string, value: string, replace?: boolean, options?: {
preventPushHistory?: boolean;
isShortenUrlParam?: boolean;
urlScheme?: number;
}): void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
key |
string |
The query parameter key (long form) |
|
value |
string |
The value to append |
|
replace |
boolean |
(Optional) Whether to replace history state (default: false) |
|
options |
{ preventPushHistory?: boolean; isShortenUrlParam?: boolean; urlScheme?: number; } |
(Optional) Options for history and URL handling |
Returns:
void