import { getShareExtensionKey } from 'expo-share-intent'; export function redirectSystemPath({ path }: { path: string; initial: boolean }) { try { if (path.includes(`dataUrl=${getShareExtensionKey()}`)) { // Zuerst die normale Session laden; der Provider öffnet danach die Upload-Strecke. return '/'; } return path; } catch { return '/'; } }