From b476261e2eec4505100c6a53c949179303f77baf Mon Sep 17 00:00:00 2001 From: Guillaume Fay Date: Tue, 10 Dec 2024 09:43:11 +0000 Subject: [PATCH] feat: add bal widget navigate event (#1919) * feat: add bal widget navigate event * fix: use window location instead of next router * fix: add target to parent nav --- src/contexts/BALWidget.context.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/contexts/BALWidget.context.tsx b/src/contexts/BALWidget.context.tsx index 7ba062c56..19ba9303b 100644 --- a/src/contexts/BALWidget.context.tsx +++ b/src/contexts/BALWidget.context.tsx @@ -158,6 +158,9 @@ export function BALWidgetProvider({ children }: BALWidgetProviderProps) { case 'BAL_WIDGET_CONFIG_LOADED': setIsBalWidgetConfigLoaded(true) break + case 'BAL_WIDGET_PARENT_NAVIGATE_TO': + window.open(event.data.content.href, event.data.content.target) + break default: break }