Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved: the logic of router.beforeEach and fix the toast issue while navigating(#233) #239

Merged
merged 1 commit into from
May 2, 2024

Conversation

R-Sourabh
Copy link
Contributor

@R-Sourabh R-Sourabh commented May 1, 2024

Related Issues

#233

Short Description and Why It's Useful

  • Improved the logic of router.beforeEach.
  • The router.beforeEach function checks if the user has permission to access a route. If not, it shows a toast message and redirects the user based on the previous route. If the previous route was the login page or the root path, the user is redirected to the settings page; otherwise, they are redirected back to the previous route

Contribution and Currently Important Rules Acceptance

@ymaheshwari1 ymaheshwari1 merged commit 40ecad3 into hotwax:main May 2, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants