feat(web): useDeepLinkHandler also subscribes to onOpenInternalRoute

This commit is contained in:
Jannis Braun
2026-04-29 22:09:20 +02:00
parent 7d98558816
commit 65ca54f556
+7
View File
@@ -45,5 +45,12 @@ export function useDeepLinkHandler(): void {
console.warn('[DeepLink] Unknown route:', url); console.warn('[DeepLink] Unknown route:', url);
} }
}); });
// Origin-aware /join/ interception from the main process
const offInternal = api.onOpenInternalRoute((path: string) => {
// path is e.g. '/join/cb265c4e' — already a normalized React Router path
navigate(path);
});
return () => { offInternal(); };
}, [navigate]); }, [navigate]);
} }