From 6172be0f388f255f3abc1c78586352d290648d46 Mon Sep 17 00:00:00 2001 From: Srinath Date: Mon, 9 Mar 2026 15:10:14 +0530 Subject: [PATCH] Added navigate --- src/App.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index a53f14e..ee40945 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -34,7 +34,7 @@ const isCapacitor = () => !!window.Capacitor?.isNativePlatform?.(); const HOME_PAGES = [ '/landing-page/home', '/home/landing-page/home', - 'app-page/home', // android minimize + '/app-page/home', // android minimize ]; const LOGIN_PAGES = ['signin', 'login', 'auth']; @@ -128,7 +128,7 @@ const AppRoutes = () => { console.log('🔙 Back pressed:', currentPath); // 🏠 Home page → minimize - if (HOME_PAGES.some((p) => currentPath.includes(p))) { + if (HOME_PAGES?.some((p) => currentPath?.startsWith(p))) { if (isCapacitor()) { await CapacitorApp.minimizeApp(); }