Home > widget-integration > FilterHandler > handleCoreMousedown

FilterHandler.handleCoreMousedown() method

Handles mousedown events on product items to update anchor hrefs to canonical URLs.

This ensures that right-click → "Open in new tab" uses the canonical product URL (without collection path) rather than the original href. The mousedown event fires before both left-click and the right-click context menu, so the href is updated in time for the browser to use it.

Signature:

handleCoreMousedown(event: Event): void;

Parameters

Parameter

Type

Description

event

Event

The native mousedown event from the DOM

Returns:

void