Skip to content

Commit

Permalink
Fixed: changed the settings path in index.js(#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
R-Sourabh committed Mar 18, 2024
1 parent 876b605 commit 84ae231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 84ae231

Please sign in to comment.