Added navigate

This commit is contained in:
Srinath 2026-03-09 15:10:14 +05:30
parent e1d7324659
commit 6172be0f38
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}