Home > widget-integration > FilterService > clearAllParamHistory
FilterService.clearAllParamHistory() method
Clears all filter parameters from URL history.
Removes all filter-related query parameters from the URL without affecting other parameters. Supports URL shortening and optional history push prevention.
Signature:
clearAllParamHistory(options?: {
preventPushHistory?: boolean;
isShortenUrlParam?: boolean;
}): void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
options |
{ preventPushHistory?: boolean; isShortenUrlParam?: boolean; } |
(Optional) Configuration options |
Returns:
void
Remarks
Delegates to urlHelper.clearAllParamHistory(). Does not affect FilterStore state - only clears URL parameters.
Example
Override to add custom parameter clearing:
clearAllParamHistory(options = {}) {
// Clear custom shop parameters first
this.clearCustomShopParams();
super.clearAllParamHistory(options);
// Track filter clear event
this.analytics.track('all_filters_cleared');
}