Home > widget-integration > CartController > setWindowLocation
CartController.setWindowLocation() method
Set window location (navigate to URL) Protected method - override to customize navigation behavior
Security: Only accepts relative URLs (same-origin) to prevent XSS attacks
Signature:
protected setWindowLocation(url: string): void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
url |
string |
Relative URL to navigate to (must start with /) |
Returns:
void