This repository has been archived by the owner on Aug 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix redirection to previous state after required authentication
Fixes the issue with the previous state not being recorded, when the unauthenticated user is redirected to the signin state, when trying to access a restricted route. Added a function that stores the provided state & state params, in the $state.previous object. This has been implemented in the $stateChangeSuccess event, and the callback of the $state.go transition when the user is not allowed to access the requested route.
- Loading branch information
Showing
2 changed files
with
41 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters