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,