From 84ae231a6e1a4979fb14c78ba658d2e2fbab2a9a Mon Sep 17 00:00:00 2001 From: R-Sourabh Date: Mon, 18 Mar 2024 16:28:58 +0530 Subject: [PATCH] Fixed: changed the settings path in index.js(#222) --- src/router/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router/index.ts b/src/router/index.ts index 8a84c404..42c29428 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -111,7 +111,7 @@ router.beforeEach((to, from) => { if (to.meta.permissionId && !hasPermission(to.meta.permissionId)) { let redirectToPath = from.path; // If the user has navigated from Login page or if it is page load, redirect user to settings page without showing any toast - if (redirectToPath == "/login" || redirectToPath == "/") redirectToPath = "/settings"; + if (redirectToPath == "/login" || redirectToPath == "/") redirectToPath = "/tabs/settings"; else showToast(translate('You do not have permission to access this page')); return { path: redirectToPath,